arma3_missions/helotraining_mp.Altis/vehicleInit.sqf

12 lines
1.0 KiB
Plaintext
Raw Normal View History

//diag_log format["vehicleIinit called, _this: %1", _this];
_vehicle = _this select 0;
_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)];
[_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)];