Forum Jump :

Author Message

Posts: 1513

Level: Member

Country: uk
In-game name:

#123230 Posted at 2012-05-29 12:03        
I see, he's included some script to take care of the init anyway you just need to add it to the code calling the respawn script

  veh = [this, 15, 10, 5, TRUE, FALSE, "this addAction ["Green on - GO!", "parascript.sqf"];] execVM "vehicle.sqf"

try placing it in the original planes init, you will need to set the numbers up as you require them, the last part in quotes is the init.

This is what he has written in the notes.

If you you want to set the INIT field of the respawned vehicle, first set all other
values, then set init commands. Those must be inside quotations.
Like this:
veh = [this, 15, 10, 5, TRUE, FALSE, "this setDammage 0.5"] execVM "vehicle.sqf"

Default values of all settings are:
veh = [this, 30, 120, 0, FALSE, FALSE] execVM "vehicle.sqf"