OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: O Neil on 11 Jan 2003, 23:26:32

Title: Cargo
Post by: O Neil on 11 Jan 2003, 23:26:32
Hey

How did you get the infantry dude to start in the vehical?
ie, I want some west soldiers in a Empty east vehical.

THxs



;)[move]
[/move]
Title: Re:Cargo
Post by: SFG on 11 Jan 2003, 23:31:02
unitname moveindriver carname
or
unitname moveincargo carname
carname= truck whatever you want to move it into
Title: Re:Cargo
Post by: Diepvriezer on 12 Jan 2003, 00:52:34
To move someone in a car/tank/plane as a driver(pilot), gunner or cargo, put the following lines in the init field of the unit:

this moveInDriver vehiclename
this moveInGunner vehiclename
this moveInCargo vehiclename


To assign a unit to a vehicle, put this in his init field:

this assignAsDriver vehiclename
this assignAsGunner vehiclename
this assignAsCargo vehiclename
Title: Re:Cargo
Post by: Wolfrug on 12 Jan 2003, 22:01:14
and if you want larger groups, you could use:

"_x moveInCargo vehicle" forEach units groupName

which will move everyone in groupName into said vehicle. If you then want drivers/gunners, you can put another driverDude moveInDriver vehicle which will teleport driverDude into the driver's seat instead.

right. G'luck then.

Wolfrug out.
Title: Re:Cargo
Post by: O Neil on 14 Jan 2003, 05:50:11
.....Think I got it, thxs