News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: My First Custom Mission  (Read 4083 times)

0 Members and 1 Guest are viewing this topic.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
My First Custom Mission
« on: November 14, 2013, 01:56:20 PM »
Well I created my first ever mission but their are a few problems. I have been using lua for about four months. The problems are that Jimmy freezes after the blips I use are loaded. I also wanted to create some custom healthbars with lua. If anyone could get back to me thanks :).

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: My First Custom Mission
« Reply #1 on: November 15, 2013, 12:38:49 AM »
I can do all of those.
I'm gettin my computer today (again).
Then I will help.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: My First Custom Mission
« Reply #2 on: November 15, 2013, 06:14:40 AM »
Okay so.
About the health bar its easy use :

PedShowHealthBar(Darby, true, "N_Darby", true) --Shows Boss health on top of the screen

Usepage :

PedShowHealthBar(PEDNAME, true, "N_NAME", true)

Use the N_ and then type the name u want to be above the health bar.
About the blips, I will need to see the script in order to be able to help you, because the player freezing because of blips never happend to me, so my guess is that its a problem with a variable.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: My First Custom Mission
« Reply #3 on: November 20, 2013, 11:42:12 AM »
 
Code: [Select]
Wait(10000)
  TextPrintString("By: LostInSpace Aka AlphaTECH", 4, 1)
  Wait(10000)
  TextPrintString("Find the bullies throughout the Tenements!", 4, 1)
  Wait(10000)
  TextPrintString("The Bullies have stolen Pete's stuff find the bullies and retrive the items!", 4, 1)

  TextPrintString("Find the first two bullies and fight them!", 4, 1)
  Bully01 = PedCreateXYZ(146,  -550.9371948, -36.46917725, 31.0114212)
  Bully17 = PedCreateXYZ(147,  -550.9371948+4, -36.46917725+4, 31.011421+4)
  Bully02 = PedCreateXYZ(147,  -543.9728394, -19.82579613, 31.02360916)
  PedSetPedToTypeAttitude(Bully01, 13, 0)
  PedSetPedToTypeAttitude(Bully02, 13, 0)
  PedSetPedToTypeAttitude(Bully17, 13, 0)
 
  PickupCreateXYZ(398, -543.9728394, -19.82579613, 31.02360916)
  PickupCreateXYZ(363, -541.927002, -22.1205101, 31.02838898)
  PickupCreateXYZ(370, -541.927002, -22.1205101, 31.02838898)
  PickupCreateXYZ(398, -514.310791, -35.47680283, 35.01113129)
  PickupCreateXYZ(398, -512.0600586, -47.42821503, 35.73261261)
  PickupCreateXYZ(398, -517.3728638, -51.74479675, 35.71253204)
  PickupCreateXYZ(398, -548.6695557, -43.94956589, 35.74840164)
 
  Wait(30000)
  TextPrintString("Check all the rooms to see if any bullies are in them", 4, 1)
  Wait(30000)
  TextPrintString("If you do not find all Pete's items you lose!", 4, 1)
  Bully03 = PedCreateXYZ(121, -541.927002, -22.1205101, 31.02838898)
  Bully04 = PedCreateXYZ(146, -534.1452026, -21.4380722, 31.0114212)
  Bully05 = PedCreateXYZ(147, -514.2109375, -17.31479454, 31.0114212)
  Bully06 = PedCreateXYZ(121, -518.383667, -17.82973862, 31.01142311)
  Bully07 = PedCreateXYZ(85, -512.6098022, -43.0886879, 31.0114193)
  Bully08 = PedCreateXYZ(102, -515.1792603, -33.03131485, 35.46273422)
  Bully09 = PedCreateXYZ(146, -514.310791, -35.47680283, 35.01113129)
  Bully10 = PedCreateXYZ(85, -512.0600586, -47.42821503, 35.73261261)
  Bully11 = PedCreateXYZ(121, -517.3728638, -51.74479675, 35.71253204)
  PedSetPedToTypeAttitude(Bully03, 13, 0)
  PedSetPedToTypeAttitude(Bully04, 13, 0)
  PedSetPedToTypeAttitude(Bully05, 13, 0)
  PedSetPedToTypeAttitude(Bully06, 13, 0)
  PedSetPedToTypeAttitude(Bully07, 13, 0)
  PedSetPedToTypeAttitude(Bully08, 13, 0)
  PedSetPedToTypeAttitude(Bully09, 13, 0)
  PedSetPedToTypeAttitude(Bully10, 13, 0)
  PedSetPedToTypeAttitude(Bully11, 13, 0)
 
 
 

 

  Wait(90000)
  TextPrintString("Head upstairs", 4, 1)
  Bully12 = PedCreateXYZ(146, -548.6695557, -43.94956589, 35.74840164)
  Bully13 = PedCreateXYZ(102, -544.7006836, -34.19110489, 35.73597336)
  PedSetPedToTypeAttitude(Bully13, 13, 0)
  PedSetPedToTypeAttitude(Bully12, 13, 0)
 



  Wait(90000)
  TextPrintString("Boss Fight : Davis", 4, 1)
  Bully14 = PedCreateXYZ(99, -544.7495117, -30.87559319, 35.73596954)
  PedSetAITree(Bully14, "/Global/RusselAI", "Act/AI/AI_RUSSEL_1_B.act")
  Bully14 = AddBlipForChar(Bully14, 6, 2, 2)
  PedAttackPlayer(Bul1y14, gPlayer,1)
  PedShowHealthBar(Bully14, true, "N_Davis", true)
  PedSetPedToTypeAttitude(Bully14, 13, 0)
  PedSetHealth(Bully14, 675)
  PedSetInfiniteSprint(Bully14, true)
  SoundSetHighIntensityStream("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)

   Bully15 = PedCreateXYZ(147, -536.6812134, -30.2863369, 40.49000931)
   Wait(120000)
   TextPrintString("Boss Fight : Ethan", 4, 1)
   Bully16 = PedCreateXYZ(145, -536.7505493, -32.0619278, 40.49129105)
   Bully16 = AddBlipForChar(Bully16, 6, 2, 2)
   PedShowHealthBar(Bully16, true, "N_Ethan", true)
   PedSetPedToTypeAttitude(Bully16, 13, 0)
   PedSetPedToTypeAttitude(Bully15, 13, 0)
   PedAttackPlayer(Bully16, gplayer,1)
   PedSetHealth(Bully16, 600)
   PedSetAITree(Bully16, "/Global/AI_EDGAR_5_B", "Act/AI/AI_EDGAR_5_B.act")
   PedSetActionTree(Bully16, "/Global/DO_Edgar", "Act/Anim/DO_Edgar.act")
   PedSetWeapon(Bully16, 342)
   PedSetInfiniteSprint(Bully16, true)
   SoundSetHighIntensityStream("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)

   Wait(120000)
   TextPrintString("Boss Fight : Davis!", 4, 1)
   Wait(5000)
   TextPrintString("Davis swings are a bit powerful, Be CAREFUL!", 4, 1)
   Bully18 = PedCreateXYZ(99, -524.7280884, -40.38653564, 40.48794174)
   PedAttackPlayer(Bully18, gPlayer,1)
   PedSetHealth(Bully18, 1000)
   Bully18 = AddBlipForChar(Bully18, 6, 2, 2)
   PedShowHealthBar(Bully18, true, "N_Davis", true)
   PedSetActionTree(Bully18, "/Global/Russell_102", "Act/Anim/Russell_102.act")
   PedSetPedToTypeAttitude(Bully18, 13, 0)
   PedSetInfiniteSprint(Bully18, true)
   PickupCreateXYZ(385, -524.7280884+4, -40.38653564+4, 40.48794174+6)
   PickupCreateXYZ(393, -524.7280884+6, -40.38653564+6, 40.48794174+6)
   SoundSetHighIntensityStream("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)
end

Ok so this is my first custom mission script for bully I created. I changed the blips I used they were 6 26 6 but Jimmy kept freezing so I switched it. Jimmy stopped freezing but their is one thing I need to know, how I get a character to run like in missions. In the beginning of the game Davis runs away from you and can keep going until he reaches the Garage. Hal runs away from Jimmy in the tenements but he doesn't normally. I tried testing this with Russell's AI but he would just stand their in an idle position I set PedFollowPath but Russell never moved from infront of the school. Another thing I want to know is how do I make the game wait to trigger boss fights like in missions to. I wanted my boss fights to trigger at different times rather than just randomly. I also wanted to trigger my spawns at different times like when the character reaches that location the characters spawn instead of just randomly also. That would be very helpful thanks.
« Last Edit: February 27, 2015, 06:37:28 PM by LostInSpace »

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: My First Custom Mission
« Reply #4 on: November 20, 2013, 12:14:54 PM »
Of course it will crash, you called the blips and the peds in the same name.

Example :

Bully11 = PedCreateXYZ...
Bully11 = AddBlipForChar...


you need to call them in diffrent names.

Example :

Bully11 = PedCreateXYZ...
BullyBlip11 = AddBlipForChar...

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: My First Custom Mission
« Reply #5 on: November 20, 2013, 04:26:29 PM »
I fixed the problem with the blips but I wanted to know how to use the PedFollowPath thing to see if I could make the characters run. I also wanted to trigger the fights when the player goes to the location.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: My First Custom Mission
« Reply #6 on: November 21, 2013, 01:23:22 AM »
PedMoveToXYZ(ped,speed,X,Y,Z)

And for the trigger when player is in location :

PedInRectangle()
I got an explanation on my tut.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: My First Custom Mission
« Reply #7 on: November 22, 2013, 08:51:04 PM »
Ok so I looked at your tut. Here is what I don't understand, what are the coords in PedInRectangle()? How do I get this command to work where would I put it? Also I tried the PedMoveToXYZ but how do I make them run? And Jimmy was the one moving not Davis. I tried fixing but no results. Thanks.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: My First Custom Mission
« Reply #8 on: November 23, 2013, 03:59:44 AM »
I'll update the topic right now and make a special section for creating Missions.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: My First Custom Mission
« Reply #9 on: January 15, 2014, 08:03:08 PM »
c00ld0c26 I have an update on my custom mission mod. Everything works perfectly except the PedInRectangle(). I tried using it and got no where. I see the coords XYZ but in the PedInRectangle code their are four which are X1, Y1, X2, Y2. Where and how would I use them. Also the then function doesn't work when I use it I put if PedInRectangle then but it doesn't work do you think you could help me figure this out please. Don't be harsh as I am new to lua modding and don't understand all. Also how do I create yellow X's on the map and how do they activate?

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: My First Custom Mission
« Reply #10 on: January 15, 2014, 08:55:13 PM »
PedInRectangle(ped,r1,r2,r3,r4)
r1 standing for rectangle point 1, r2 for point 2 and so on.

Only use the X and Y coordinates. Z is height and isn't used in determining if the ped is in the rectangle. The rectangle goes all the way up and down if you want to think of it that way. I'd help some but sort of busy atm... may return to tha topic later.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: My First Custom Mission
« Reply #11 on: January 16, 2014, 12:03:37 AM »
You basicly want to create an imaginary shape of rectangles using 2 X coords and 2 Y coords.

So its like :

if PedInRectangle(gPlayer,10,5,6,2) then
PedCreateXYZ........
end
end

So basicly, if the player stands between the X coords of 10 and 6 and between the Y coords of 5 and 2 it will create a ped.


Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: My First Custom Mission
« Reply #12 on: January 16, 2014, 03:33:19 PM »
Code: [Select]
ImportScript("\\Library\\LibTable.lua")
ImportScript("\\Library\\LibPed.lua")
local l_0_0 = false
 
MissionSetup = function()
  local l_1_0 = 270
  local l_1_1 = -110
  local l_1_2 = 6.4000000953674
 
  PlayerSetHealth(200)
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
  PickupCreateXYZ(388, l_1_0, l_1_1, l_1_2)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeFastMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  DisablePunishmentSystem(true)
end
 
FirstBulliesSpawn = function()
  if PedInRectangle(gPlayer,-550.9371948,-36.46917725,-543.9728394,-19.82579613) then
  Wait(5000)
  TextPrintString("By: LostInSpace Aka AlphaTECH", 4, 1)
  Wait(5000)
  TextPrintString("Find the bullies throughout the Tenements!", 4, 1)
  Wait(5000)
  TextPrintString("The Bullies have stolen Pete's stuff find the bullies and retrive the items!", 4, 1)

  TextPrintString("Find the first two bullies and fight them!", 4, 1)
  Bully01 = PedCreateXYZ(146,  -550.9371948, -36.46917725, 31.0114212)
  Bully17 = PedCreateXYZ(147,  -550.9371948+4, -36.46917725+4, 31.011421+4)
  Bully02 = PedCreateXYZ(147,  -543.9728394, -19.82579613, 31.02360916)
  PedSetPedToTypeAttitude(Bully01, 13, 0)
  PedSetPedToTypeAttitude(Bully02, 13, 0)
  PedSetPedToTypeAttitude(Bully17, 13, 0)
 
  PickupCreateXYZ(398, -543.9728394, -19.82579613, 31.02360916)
  PickupCreateXYZ(363, -541.927002, -22.1205101, 31.02838898)
  PickupCreateXYZ(370, -541.927002, -22.1205101, 31.02838898)
  PickupCreateXYZ(398, -514.310791, -35.47680283, 35.01113129)
  PickupCreateXYZ(398, -512.0600586, -47.42821503, 35.73261261)
  PickupCreateXYZ(398, -517.3728638, -51.74479675, 35.71253204)
  PickupCreateXYZ(398, -548.6695557, -43.94956589, 35.74840164)
  if PedInRectangle(gPlayer,-541.927002,-22.1205101,-534.1452026,-21.4380722) then 
  Wait(5000)
  TextPrintString("Check all the rooms to see if any bullies are in them", 4, 1)
  Wait(5000)
  TextPrintString("If you do not find all Pete's items you lose!", 4, 1)
  Bully03 = PedCreateXYZ(121, -541.927002+1, -22.1205101+1, 31.02838898+1)
  Bully04 = PedCreateXYZ(146, -534.1452026, -21.4380722, 31.0114212)
  Bully05 = PedCreateXYZ(147, -514.2109375, -17.31479454, 31.0114212)
  Bully06 = PedCreateXYZ(121, -518.383667, -17.82973862, 31.01142311)
  Bully07 = PedCreateXYZ(85, -512.6098022, -43.0886879, 31.0114193)
  Bully08 = PedCreateXYZ(102, -515.1792603, -33.03131485, 35.46273422)
  Bully09 = PedCreateXYZ(146, -514.310791, -35.47680283, 35.01113129)
  Bully10 = PedCreateXYZ(85, -512.0600586, -47.42821503, 35.73261261)
  Bully11 = PedCreateXYZ(121, -517.3728638, -51.74479675, 35.71253204)
  PedSetPedToTypeAttitude(Bully03, 13, 0)
  PedSetPedToTypeAttitude(Bully04, 13, 0)
  PedSetPedToTypeAttitude(Bully05, 13, 0)
  PedSetPedToTypeAttitude(Bully06, 13, 0)
  PedSetPedToTypeAttitude(Bully07, 13, 0)
  PedSetPedToTypeAttitude(Bully08, 13, 0)
  PedSetPedToTypeAttitude(Bully09, 13, 0)
  PedSetPedToTypeAttitude(Bully10, 13, 0)
  PedSetPedToTypeAttitude(Bully11, 13, 0)
end
end
end
 
SecondBulliesSpawn = function()
  if PedInRectangle(gPlayer,-548.6695557,-43.94956589,-43.94956589,-34.19110489) then
  TextPrintString("Head upstairs", 4, 1)
  Bully12 = PedCreateXYZ(146, -548.6695557+1, -43.94956589+1, 35.74840164+1)
  Bully13 = PedCreateXYZ(102, -544.7006836, -34.19110489, 35.73597336)
  PedSetPedToTypeAttitude(Bully13, 13, 0)
  PedSetPedToTypeAttitude(Bully12, 13, 0)
end
end

DavisFirstBossFight = function()
  if PedInRectangle(gPlayer,-544.7495117,-30.87559319,-544.7495117,35.73596954) then
  TextPrintString("Mini Boss Fight : Davis Health 675%", 4, 1)
  Bully14 = PedCreateXYZ(99, -544.7495117+1, -30.87559319+1, 35.73596954+1)
  PedSetAITree(Bully14, "/Global/RusselAI", "Act/AI/AI_RUSSEL_1_B.act")
  gDavisBlip = AddBlipForChar(Bully14, 6, 2, 2)
  PedAttack(Bul1y14, gPlayer,1)
  PedShowHealthBar(Bully14, true, "N_Davis", true)
  bHealthBarShown = true
  PedSetPedToTypeAttitude(Bully14, 13, 0)
  PedSetHealth(Bully14, 675)
  PedSetInfiniteSprint(Bully14, true)
  SoundSetHighIntensityStream("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)
end
end

EthanBossFight = function()
  if PedInRectangle(gPlayer,-536.7505493,-32.0619278,-536.6812134,40.49000931) then
   Bully15 = PedCreateXYZ(147, -536.6812134+1, -30.2863369+1, 40.49000931+1)
   Wait(10000)
   TextPrintString("Mini Boss Fight : Ethan Health 600%", 4, 1)
   Bully16 = PedCreateXYZ(145, -536.7505493, -32.0619278, 40.49129105)
   gDavisBlip = AddBlipForChar(Bully16, 6, 2, 2)
   PedShowHealthBar(Bully16, true, "N_Ethan", true)
   bHealthBarShown = true
   PedSetPedToTypeAttitude(Bully16, 13, 0)
   PedSetPedToTypeAttitude(Bully15, 13, 0)
   PedAttackPlayer(Bully16, gplayer,1)
   PedSetHealth(Bully16, 600)
   PedSetAITree(Bully16, "/Global/AI_EDGAR_5_B", "Act/AI/AI_EDGAR_5_B.act")
   PedSetActionTree(Bully16, "/Global/DO_Edgar", "Act/Anim/DO_Edgar.act")
   PedSetWeapon(Bully16, 342)
   PedSetInfiniteSprint(Bully16, true)
   SoundSetHighIntensityStream("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)
end
end

DavisFinalBossFight = function()
  if PedInRectangle(gPlayer,-524.7280884,-40.38653564,-524.7280884,-40.38653564) then
   TextPrintString("Boss Fight : Davis! Health 1000%", 4, 1)
   Wait(5000)
   TextPrintString("Davis swings are a bit powerful, Be CAREFUL!", 4, 1)
   Bully18 = PedCreateXYZ(99, -524.7280884+1, -40.38653564+1, 40.48794174+1)
   PedAttackPlayer(Bully18, gPlayer,1)
   PedSetHealth(Bully18, 1000)
   gDavisBlip = AddBlipForChar(Bully18, 6, 2, 2)
   PedShowHealthBar(Bully18, true, "N_Davis", true)
   bHealthBarShown = true
   PedSetActionTree(Bully18, "/Global/Russell_102", "Act/Anim/Russell_102.act")
   PedSetPedToTypeAttitude(Bully18, 13, 0)
   PedSetInfiniteSprint(Bully18, true)
   PickupCreateXYZ(385, -524.7280884+4, -40.38653564+4, 40.48794174+6)
   PickupCreateXYZ(393, -524.7280884+6, -40.38653564+6, 40.48794174+6)
   SoundSetHighIntensityStream("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)
end
end

F_MissionSetup = function()
  F_tCatwalkCam()
  F_CatWalk()
  F_SecondThirdFloor()
  CameraFollowPed(gPlayer)
  LoadAnimationGroup("BOXING")
  LoadAnimationGroup("DO_STRIKECOMBO")
  LoadAnimationGroup("1_G1_TheDiary")
  LoadAnimationGroup("NIS_3_05")
  LoadAnimationGroup("Area_Tenements")
  LoadAnimationGroup("N2B Dishonerable")
  LoadAnimationGroup("NIS_2_B")
  LoadAnimationGroup("P_Striker")
  LoadAnimationGroup("P_Grappler")
  LoadAnimationGroup("J_Ranged")
  LoadAnimationGroup("J_Damon")
  LoadAnimationGroup("Straf_Prep")
  LoadAnimationGroup("STRAF_WREST")
  LoadAnimationGroup("B_Striker")
  LoadAnimationGroup("TE_FEMALE")
  LoadAnimationGroup("DO_Striker")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("N_Striker_B") 
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("G_Johnny")
  LoadAnimationGroup("F_Girls")
  LoadAnimationGroup("F_Douts")
  LoadAnimationGroup("F_Greas")
  LoadAnimationGroup("LE_ORDERLY")
  LoadAnimationGroup("F_CRAZY")
  LoadAnimationGroup("F_JOCKS")
  LoadAnimationGroup("SNERD_I")
  LoadAnimationGroup("SNERD_S")
  LoadAnimationGroup("Halloween")
  LoadAnimationGroup("F_Adult")
  LoadAnimationGroup("LE_Orderly")
  LoadAnimationGroup("F_Preps")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("Russell")
  LoadAnimationGroup("NPC_Mascot")
  LoadAnimationGroup("IDLE_JOCK_A")
  LoadAnimationGroup("Earnest")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("G_Striker")
  LoadAnimationGroup("Nemesis")
  LoadAnimationGroup("N_STRIKER_B") 
  LoadAnimationGroup("Straf_Wrest")
  LoadAnimationGroup("J_Striker")
  LoadAnimationGroup("J_Grappler")
  LoadAnimationGroup("NPC_Principal")
  LoadAnimationGroup("Authority")
  LoadAnimationGroup("C_Wrestling")
end
 
MissionCleanup = function()
  UnLoadAnimationGroup("BOXING")
  UnLoadAnimationGroup("DO_STRIKECOMBO")
  UnLoadAnimationGroup("1_G1_TheDiary")
  UnLoadAnimationGroup("NIS_3_05")
  UnLoadAnimationGroup("Area_Tenements")
  UnLoadAnimationGroup("Russell")
  UnLoadAnimationGroup("N2B Dishonerable")
  UnLoadAnimationGroup("NIS_2_B")
  UnLoadAnimationGroup("P_Striker")
  UnLoadAnimationGroup("P_Grappler")
  UnLoadAnimationGroup("J_Ranged")
  UnLoadAnimationGroup("J_Damon")
  UnLoadAnimationGroup("Straf_Prep")
  UnLoadAnimationGroup("STRAF_WREST")
  UnLoadAnimationGroup("B_Striker")
  UnLoadAnimationGroup("TE_FEMALE") 
  UnLoadAnimationGroup("DO_Striker")
  UnLoadAnimationGroup("F_Nerds")
  UnLoadAnimationGroup("N_Striker_B")
  UnLoadAnimationGroup("NPC_Adult")
  UnLoadAnimationGroup("G_Johnny")
  UnLoadAnimationGroup("F_Girls")
  UnLoadAnimationGroup("F_Douts")
  UnLoadAnimationGroup("F_Greas")
  UnLoadAnimationGroup("LE_ORDERLY")
  UnLoadAnimationGroup("F_CRAZY")
  UnLoadAnimationGroup("F_JOCKS")
  UnLoadAnimationGroup("SNERD_I")
  UnLoadAnimationGroup("SNERD_S")
  UnLoadAnimationGroup("Halloween")
  UnLoadAnimationGroup("F_Adult")
  UnLoadAnimationGroup("LE_Orderly")
  UnLoadAnimationGroup("F_Preps")
  UnLoadAnimationGroup("G_Grappler")
  UnLoadAnimationGroup("NPC_Mascot")
  UnLoadAnimationGroup("IDLE_JOCK_A")
  UnLoadAnimationGroup("Earnest")
  UnLoadAnimationGroup("G_Grappler")
  UnLoadAnimationGroup("G_Striker")
  UnLoadAnimationGroup("Nemesis")
  UnLoadAnimationGroup("N_STRIKER_B")
  UnLoadAnimationGroup("Straf_Wrest")
  UnLoadAnimationGroup("J_Grappler")
  UnLoadAnimationGroup("NPC_Principal")
  UnLoadAnimationGroup("Authority")
  UnLoadAnimationGroup("C_Wrestling")
  collectgarbage()
end
 
main = function()
FirstBulliesSpawn()
SecondBulliesSpawn()
DavisFirstBossFight()
EthanBossFight()
DavisFinalBossFight()
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end

This is my new mission script but the PedInRectangle doesn't work.
« Last Edit: February 27, 2015, 06:37:01 PM by LostInSpace »

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: My First Custom Mission
« Reply #13 on: January 16, 2014, 04:40:27 PM »
(use the code tags next time)

I also am having trouble with PedInRectangle lately. IDK why... maybe we're all doing something wrong and it requires another argument.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: My First Custom Mission
« Reply #14 on: January 17, 2014, 03:08:12 AM »
No u didn't repeat the PedInRectangle() that's why.
In currently in school ill help when I'm at home