OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ljt on 09 Sep 2002, 23:55:31
-
Hey guys,
I know this is simple thing but i cant find out newhere how to do it.
Basically, I d/l the C-130 plane, and it says it can hold 40 men approx, but i set a way point for 3 groups to get in, but nothing happens on the get in waypoint they all just huddle in a group.
What is the code u put in the Init field to start them in the actual plane, to save the rigmarole of waiting for them all to board.... ???
Thanks in advance
-
Well, the normal code is some INIT field spell similar to this one, m8 :)
"_x moveinCargo Plane1" foreach units this :o
Just name the plane, off course! ;D But I haven't tried the C-130
myself yet,
I can't say wether it works with all those men inside or not ??? :-\ :)
Laterz
----------------
PS. This syntax was for ONE group, so THREE groups would probably take a trigger;
"_x moveinCargo Plane1" foreach units Thislist :-*
Put the trigger around the goofyheads & let it fire right away! :D
(activated by anybody)
-
What Tomb has written is absolutely right...but a lil' more precise.
You've to (only) write the stuff in the initline of a groupleader.
For one unit it's: this moveincargo vehiclename
Greetz
Plage
-
I've gotten two groups in the C130. ljt you should d/l it, its really good.
-
thanks for help guys, will go try what u suggested. thanks again
-
wooooo it worked!!! :D:D:D, thanks alot guys, just been messing about with that command, got meself 2 C130's packed full with men flying over Everon at night backed up by 2 A-10 while being fired at by flak 36's looked really atmospheric with the lighting effects.
-
I hope its not inappropriate to add a question, but its subject related..
When you use:
UnitName Moveincargo VehName
how do you go about "transport unloading" them? When I did that before only human players disembarked, all the ai stayed in the chinook..
Unrelated - u can make the triggers condition " true " and it will fire right away wont it?
"_x moveinCargo Plane1" foreach units Thislist
for Thislist .. something like this?..
"_x moveinCargo Plane1" foreach units grp1,grp2,grp3
?
-
Yes, if you put
true
in the condition field of a trigger it will activate immediately.
The lads will stay in the back of the chinook unless they have a "get out" waypoint to persuade them to leave. Synchro it with the "unload" WP.
Regret I know nothing about foreach commands so can't help with that bit.
-
how do you go about "transport unloading" them?
If you use the command:
"unassignvehicle _x" foreach units group
The next time the chopper lands, all units in group will jump out (unless the player is the group leader... then they must be ordered out).
So couple that command with the:
heli land "get out"
and you've basically got yourself a scripted 'transport unload' point...
-
would:
heli land "get out"
Lland on a helipad like:
heli land "land"
Or do I have to do something like:
heli land "get out"; heli land "land"
and when trying to land more than one chopper with the same command (heli land "land") I found the heli's have a problem finding which helipad is theirs. Can I assign specific pads for each chopper?
-
Land "land" will make the chopper land at the nearest (or most convenient) hpad, and it will turn off it's engine (eventually)
The land "get out" command will make the chopper land similarly, at the most convenient hpad, and will wait for all the guys who have been unassigned to get out before heading off again.
As far as I know, you can't assign a specific landing spot to a helicopter... you just have to muck around with hpad placement.
If you use that line you had above:
heli land "get out"; heli land "land"
your land "land" command would override the "get out" command. Use one or the other, but there is no point using both ;)