OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: westy159 on 18 Dec 2005, 00:06:41

Title: Boarding Vehicles With Certain Positions
Post by: westy159 on 18 Dec 2005, 00:06:41
Ok i want a AI man to get in the empty truck in back not as driver.
How do i do this?

Thankles
Title: Re:Boarding Vehicles With Certain Positions
Post by: nominesine on 18 Dec 2005, 01:27:38
Script example:

Code: [Select]
unitName assignAsCargo vehicleName; [unitName] orderGetin true
To make him disembark, give this command:

Code: [Select]
[unitName] orderGetin false
or

Code: [Select]
unassignVehicle unitName
Title: Re:Boarding Vehicles With Certain Positions
Post by: jBrereton on 18 Dec 2005, 10:14:42
Could you not also have the vehicle designated as locked, then assignas the soldier to wherever you wanted him, and then order them to get in?
Title: Re:Boarding Vehicles With Certain Positions
Post by: THobson on 18 Dec 2005, 10:38:32
Locking vehicles only effects the player, not AI units