OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Commando on 10 Aug 2004, 17:30:14

Title: extraction heli move when all players inside
Post by: Commando on 10 Aug 2004, 17:30:14
I got a mission where i have 2 groups of soldiers 1 that are pilots and one that are mixed ground troops.
my question is how do i get the extraction chopper to fly out of the extraction zone when all players are inside?  :P
Title: Re:extraction heli move when all players inside
Post by: macguba on 10 Aug 2004, 17:47:54
Use snYpir's Quick chopper lands scripts from the Ed Depot.   Or one of the other chopper scripts.
Title: Re:extraction heli move when all players inside
Post by: Commando on 10 Aug 2004, 18:05:04
yeah i had a look at them but i didn't want to add more scripts than the mission already has  :P
the Grouplink script and the many a.i's and objects have already made the mission heavy. But i have improvised some triggersand waypoints now instead, gonna go and see if they work later on. Anyone know how to hide radio alpha and when the last objective is done the radio alpha gets visible in the radio menu?
Title: Re:extraction heli move when all players inside
Post by: macguba on 10 Aug 2004, 18:55:16
setRadioMsg "null"

"_x in chopper1" count units grp1 == count units grp1

Syntax not guaranteed.
Title: Re:extraction heli move when all players inside
Post by: Commando on 10 Aug 2004, 23:24:33
gonna try it but first im gonna see if my player in evacchopper condition in a waypoint works  ???
Title: Re:extraction heli move when all players inside
Post by: ryankaplan on 11 Aug 2004, 11:21:12
what the hell? what is all the scripts for? i can't beleive you didn't remember this. (now i'm worried i didn;t read the question right)
just check out the jpeg i provided at the bottom of the page. This should sort out your problem.
Title: Re:extraction heli move when all players inside
Post by: Void-DK on 11 Aug 2004, 14:39:17
Waypoints with players isnt always the best method tho :)


-Tet
Title: Re:extraction heli move when all players inside
Post by: Cannon on 12 Aug 2004, 17:38:16
Dunno if this will help but...

I cut the helis fuel when he is close to ground.... then give it back when I radio in.... and it never failed so far...

LOADATEXTRAC > HOLD > MOVETOBASE
                                ^
                                 |___ Syncronize with RADIO FOXTROT Trigger & Switch
                                          (and give fuel to heli)
                                         
Problem is, heli might get to load and not wait for all members to get in, thats why I make sure its fuel its 0, when he gets really close to ground, and then give it back with radio. (you could also make him exec a script like heli addaction ["Lets go", "heligo.sqs"] in which you set his fuel to 1 and use a couple voices for nice effect :)

Just some thoughs.