OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: NightJay0044 on 18 Apr 2008, 01:37:54

Title: group eject command
Post by: NightJay0044 on 18 Apr 2008, 01:37:54
Hi all~
    OFPEC is looking nice better then before. I have a question about a command. How do you make a group of soldiers parashoot/eject from a chopper all at once without using the individual command for each unit?

I know it has something to do with the _x, foreach unit this list, but I have no idea how the rest of it goes..thank you for the help..
Title: Re: group eject command
Post by: schuler on 18 Apr 2008, 07:22:52
hi Jay, i can attach a demo if you like
cmd="EJECT"; "_x action [cmd,heli]" foreach units rangers
cheers schuler
Title: Re: group eject command
Post by: NightJay0044 on 18 Apr 2008, 19:09:45
That's alright, yeah I found a paradrop script to use to, but your command script works, I was just originally looking for a command as in "foreach this list" as you posted. I appreciate it...