These are looking like some awesome points and sorry for the glitches their are many functions happening during gameplay so it may cause a crash.
I would like for the board to become a little more active and with a lot more videos being done. More videos mean more views and people wanting to learn. UG1 explained to me that during the time of Governmentman123's machinima's it made plenty people do videos that were just like it.
To make a basic mission is easy not hard at all it just takes practice and patience. For beginners making a basic five bracket mission is easy like this.
FindandRescueGary.lua(I usually name mine to give myself ideas.)
Missionscript function
Gary = 170(ID)
PedCreateXYZ(Gary,XYZ)
BlipAddXYZ(2,XYZ)
end
F_Firstinstance function
if Pedinrectangle then
TextPrint("Search for Gary, he has been kidnapped by the dropouts.")
PedCreateXYZ(Ped,XYZ)(Add how many enemies you want, if you want a table Daboss is your man.)
PedSetTypeToAttitude (Ped,1,13,0)(Table your agression also)
PedAttackPlayer (Ped,3)(Makes the peds attack from a distance.)(Table Also)
end
F_Secondinstance function
if PIR then
TextPrint ("Henry is getting away chase after him!")
PedMoveToXYZ(Henry,3,XYZ)
PCXYZ(Ped,XYZ)
(Have characters aid Henry so it makes sense.)
PedGetModel"Model"(Idk no scripts)(Swap for any Ped.)
PedSetInvulnerable(Henry,true)
end
F_ThirdInstance function
if l_70_64 == false and Pedisvalid and PedHasWeapon then
TextPrint ("Their he is, use your slingshot to attack!")
end
if Pedhasweapon and l_17_6 == false and PedisValid then
TextPrint ("No use he has a shield!")
PICKUPCREATEXYZ
TextPrint ("Pick up some firecrackers and throw them!)
end
if Pedhasweapon and l_17_6 == true then
TextPrint ("Henry : Your a smart ass aren't ya, Leon take out the trash!")
end
F_LeonMiniBossFight function
if PedIsValid(Leon) and PedHasWeapon(Pipe) and l_17_0 == false then
PedAttackPlayer(Ped,3)
end
FightInstance function
if Pedhasweapon(Ped,Shield) and l_17_0 == false then
PedDestroyWeapon(Ped,Weapon)
end
FindPipeInstance function
if PedGetHealth(50) and l_17_0 == false then
PEDMOVETOXYZ(PED,3,XYZ)
PICKUPCREATEXYZ(Weapon)
until PedHasWeapon(Weapon)
end
F_FinalBossFightHenry function
if PedIsDead(Leon) and l_17_0 == false and PedHasWeapon (Weapon) then
TextPrint("I don't need shit to waste you school trash!")
end
SuperAttack function
if PedIsValid(Henry) and GetTimer and PedGetHealth(20) then
PedSetActionNode(Action)
TextPrint("Come on kid is that all you got!")
end
DodgeYoShit function
if PedIsValid(Henry) and GetTimer and Pedgethealth then
PedSetActionNode(Action)
end
F_HenryRekt function
if PedIsDead(Henry) and l_17_0 == true then
TextPrint("Henry : Okay, okay Gary is on top of the gas station!")
BlipAddXYZ(2,XYZ)
end
F_GaryFound function
if Pedinrectangle(Blah) and l_17_0 == false and PedisValid(Gary)
TextPrint("Gary : It took you long enough you slacker!")
end
F_FailureCondition function
if PedIsDead(Gary) and l_17_0 == true then
TextPrint("Gary was knocked the fuck out!")
MissionFail(true,false,false)
(ForgoTable how to add failure music)
CameraSetWidescreen(true)
CameraFade(0,500)
end
F_SuccesCondition function
if PedIsValid(Gary) and l_17_0 == false then
MissionSucced (true,false,false)
CAMERASETWIDESCREEN(true)
CameraFade (0,500)
end
You get the idea anyone can try this as a basic starter mission pretty easy and less than 20 bracktes so you wont have to script a lot of functions. I will complete the mission entirely soon enough or if someone would want to do it and create a video of it, would be awesome. Any new modder can test it out, the mission is not scripted correctly and would need to be rescripted.