OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: .::RAMMSTEIN::. on 25 May 2003, 05:52:01

Title: Simple Question
Post by: .::RAMMSTEIN::. on 25 May 2003, 05:52:01
Hey, i need to know how to make a trigger that makes a squad get in a m113 after i walk over the trigger
THANKS! ::)
Title: Re:Simple Question
Post by: beowulf2014 on 25 May 2003, 07:53:31
you need to put this in leader of squads init.

mygrp = group this

then in trigger on activation put

"_x moveinCargo m113" forEach units mygrp

where m113 is the name of your vehicle...hope that helps
Title: Re:Simple Question
Post by: macguba on 25 May 2003, 11:26:29
Or use assignAsCargo and orderGetIn true.
Title: Re:Simple Question
Post by: Tomb on 25 May 2003, 11:57:27

...a trigger that makes a squad get in a m113 after i walk over the trigger...



 :) Well, Bob, simply use a"Get in" WP for the grp, and make a "LOAD" WP for teh M113.
If ya like, you can create an "Invisible H" object and put the WP's upon it.

Then set up a trigger and hit F5 and drag a synchr. line between the WP's and between the WP's and the trigger.
And finally, hit F2 and group the trigger to YOU (player) with yet another line. This way, only YOU can fire the trigg.

(aaah, them lines.. hehehehehehe)  ;D 8) :-X

PS.

Make it a switch trigger  :-*


PPS

The "MoveInCargo" is not so good, as it instantly teleports all of the morons into the "van".