OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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]
-
unitname moveindriver carname
or
unitname moveincargo carname
carname= truck whatever you want to move it into
-
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
-
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.
-
.....Think I got it, thxs