Home   Help Search Login Register  

Author Topic: Leader  (Read 1101 times)

0 Members and 1 Guest are viewing this topic.

O Neil

  • Guest
Leader
« 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 ;)

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Leader
« Reply #1 on: 10 Nov 2002, 10:13:13 »
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.
"When 900 years YOU reach, look as good you will not!"

O Neil

  • Guest
Re:Leader
« Reply #2 on: 11 Nov 2002, 06:23:11 »
Soz

Where is it? I've been loking but can't find it !

Soz :-[

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Leader
« Reply #3 on: 11 Nov 2002, 10:32:20 »
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.
"When 900 years YOU reach, look as good you will not!"

O Neil

  • Guest
Re:Leader
« Reply #4 on: 12 Nov 2002, 05:46:38 »
Hey

Soz, I'm new, the solved button ?

Soz

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Leader
« Reply #5 on: 12 Nov 2002, 06:30:56 »
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.