OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: O Neil on 10 Nov 2002, 08:09:23
-
Hey
Played the mission "Sordfish?" Talk about lagg.
Anyways, in that mission, you some guys that get's into a plane, but your leader gets into another plane.
How do you do this, make somene else in you GROUP go somewhere else ?
Thxs ;)
-
well, depending on the size of your group...either you individually assign them vehicles, or you just do this little trick:
"_x assignAsCargo truck1" forEach units your_grp; leader your_grp assignAsCargo truck2
which would assign everyone (inc leader) to the cargo space of truck1, but the line thereafter in turn assigned the leader to the cargo of truck 2...neat, eh? ;)
Then just have them enter the trucks through:
(units your_grp) ordergetin TRUE
Just put all of them into one trigger's line, and you should be fine. If you want to assign anyone to drive the trucks/vehicles, you might try adding a line like:
(units your_grp select 1) assignAsDriver truck1
select 0 is most often the leader, y'see. Oh, and you assign groups by putting the line:
name_of_your_group=group this
into one of your group member's init field (suggest the leader...easier to keep track of).
Oh, and utterly by the way, other commands with AI groups are also makeable this way, just use commands like commandMove or doMove to have 'em move where ya want, although you often have to use doStops and whatnots to keep them pinned to the place :)
Download the UCR (unoffical command reference) for a full list of commands, it's a must-have! :thumbsup:
G'luck then. :-*
Wolfrug out.
-
Soz
Where is it? I've been loking but can't find it !
Soz :-[
-
In the Editor's Depot, Tutorials, References. Here's a link:
http://www.ofpec.com/editors/browse.php?browsewhat=0&category=0_2
That's the "Unofficial Command reference" you're lookin' for ;) Oh, and I do suggest the official one as well...if nothing else it's smaller and easier to quickly check some command in. The UCR however has SO much more stuff (like full list of switch/playmoves, weapon & ammo list etc)...
Right, well, did my solution work then? If so, remember the "solved" button :thumbsup:
Wolfrug out.
-
Hey
Soz, I'm new, the solved button ?
Soz
-
pressing the solved button will let the ed depot staff put it in the faq to help people with the same type of problem, the button has a little green tick, its between modify and the quote.