OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: PuH on 29 Jan 2004, 16:24:49

Title: MoveIncargo after respawn
Post by: PuH on 29 Jan 2004, 16:24:49
hi...

Im having a problem in one of my scripts:

i have a squad w. a APC in it and when the soldiers die i want the to respawn in to a chopper (MoveInCargo), but when as soon the soldiers gets in the chopper they auto ejects, players to. i figured it has some thing with the fact that they are assigned to the APC by the commander (AI).

So does anyone know how to do this?
Title: Re:MoveIncargo after respawn
Post by: icarus_uk on 29 Jan 2004, 19:14:27
If their vehicle assignments are the reason, then it should be just a simple case of  assinging him a new vehicle.

UnassignVehicle UnitName

UnitName AssignAsCargo VehicleName