2016-07-26 01:16:03 +00:00
|
|
|
//diag_log format["vehicleIinit called, _this: %1", _this];
|
2016-07-24 16:23:46 +00:00
|
|
|
|
|
|
|
_vehicle = _this select 0;
|
2016-09-11 12:49:18 +00:00
|
|
|
_vehicle setDamage 0;
|
2016-07-25 21:58:29 +00:00
|
|
|
|
2016-07-31 16:14:42 +00:00
|
|
|
_vehicle remoteExec ["removeAllActions", 0, "rmall" + (_vehicle call BIS_fnc_netId)];
|
2016-11-19 15:22:17 +00:00
|
|
|
[_vehicle, ["Repair", { [_this select 0] remoteExec ["xenoRepair", _this select 0]; }]] remoteExec ["addAction", 0, "addrepair" + (_vehicle call BIS_fnc_netId)];
|
|
|
|
[_vehicle, ["Spawn crew", { _this remoteExec ["spawnCrewAction", _this select 0]; }]] remoteExec ["addAction", 0, "addcrew" + (_vehicle call BIS_fnc_netId)];
|
|
|
|
[_vehicle, ["Respawn vehicle", { _this remoteExec ["destroyVehicleAction", _this select 0]; }]] remoteExec ["addAction", 0, "destroy" + (_vehicle call BIS_fnc_netId)];
|
|
|
|
[_vehicle, ["Destroy main rotor", { _this remoteExec ["destroyMainrotorAction", _this select 0]; }]] remoteExec ["addAction", 0, "mrotdestroy" + (_vehicle call BIS_fnc_netId)];
|
|
|
|
[_vehicle, ["Destroy tail rotor", { _this remoteExec ["destroyTailrotorAction", _this select 0]; }]] remoteExec ["addAction", 0, "atrotdestroy" + (_vehicle call BIS_fnc_netId)];
|