OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Smoshy on 22 Apr 2003, 08:06:29

Title: Randomize Drop Zone
Post by: Smoshy on 22 Apr 2003, 08:06:29
Is it possible to randomize where my squad (individually) ends up after bailing out of a plane on script execution? Like Capt.Ryans first Normandy mission.

Cheers
Smosh
Title: Re:Randomize Drop Zone
Post by: Der_Richter on 22 Apr 2003, 10:05:21
Could you attach a copy of the script and iÂ'll look into it?
Title: Re:Randomize Drop Zone
Post by: Iwesshome on 22 Apr 2003, 14:11:45
Smoshy,

Why don't you Unpbo Capt. Ryan's mission and see how he did it?

IW
Title: Re:Randomize Drop Zone
Post by: Smoshy on 23 Apr 2003, 07:21:23
The script is just the same as I found here at OFPEC I think it was the helicopter bailout from memory.

_aunits = units Bob
_i = 0
_j = count _aunits

#BailBoys

(_aunits select _i) action ["EJECT", Bird1]
unassignvehicle (_aunits select _i)
_i=_i+1
~0.75
?_j>_i:goto "BailBoys"

exit


How do I Unpbo the file?

Cheers
Title: Re:Randomize Drop Zone
Post by: macguba on 23 Apr 2003, 10:54:59
Go to the Ed Depot - tools and get Amalfi's pbo decryptor 1.5.   It's very easy to use and turns practically any .pbo file - including official campaigns - into open source.
Title: Re:Randomize Drop Zone
Post by: Smoshy on 23 Apr 2003, 13:23:50
Thanks dude. Will do.