OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Cactus on 03 Nov 2002, 23:45:47
-
Trying to make a group to load into an empty chopper, waiting for the pilot to arrive and then take of. But I have a few problems...
1) How do I make the group get in? Can't use the "LOAD"-waypoint since the chopper is empty and if I use "GET IN" only the leader get in, IF I assign him as cargo in the OnActivation for the WP else they are just standing around not even trying to get in. I want the WHOLE group to get in...
2) If I let the pilot arrive and sync a "LOAD" with "GET IN" the chopper takes of and flies into the sunset... hmmm....
Any good suggestions how to make the group get into the chopper w/o having to set them as cargo from beginning?
(A totally unrelated question: How do I make the Leader group leader? Really can't see how the command "group" is working and BIS example don't reveal much (group player == group leader player))
Thanks in advance!
-
Hey there cactus,
Try this line in the OnActivation field of your waypoint nearest the chopper (keep it as a MOVE waypoint):
"_x assignascargo heli" foreach units group; (units group) ordergetin true
That will work if you correctly define your group (Your last question)... Use the group command like this:
group = group this
in your leader's init field. Where group is the name of your group, and can be anything you like (apart from a few reserved expressions).
-
WELL I CAN GET MEN in the empty chop just use waypoint get in right over the chop
-
Thanks Sui. I'll try your solution at once :)
To 2LT.7TH: Well, I'm glad for you, but I can't and I tried it several times. No offence, but I would like some more constructive criticism ;D