OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: jphilapy on 24 Jan 2006, 08:52:20

Title: setting init in the createVehicle command
Post by: jphilapy on 24 Jan 2006, 08:52:20
Hi,

I am using the 'createVehicle' command in my script. How can I also set something to initialize regarding the vehicle? If there is away to set a value in the init of the newly created vehicle then that would solve my problem.

Thanks,
Jeff
Title: Re:setting init in the createVehicle command
Post by: nominesine on 24 Jan 2006, 10:47:28
The comref states that this is possible for createUnit. The option to include an init line is not given for createVehicle.

But since the createVehicle command lets you name the created unit:
Code: [Select]
_tank = "M1Abrams" createVehicle getmarkerpos "tankFactory"
it should be possible to issue commands and change settings regarding _tank from a script
Title: Re:setting init in the createVehicle command
Post by: jphilapy on 24 Jan 2006, 11:50:36
ok thanks