arma3_missions/helotraining.Altis/initPlayer.sqf
2016-07-24 13:39:43 +03:00

12 lines
392 B
Plaintext

waitUntil {!(isNil "missionInitComplete")};
diag_log format["initPlayer called, _this: %1", _this];
_target = _this select 0;
_playerno = _this select 1;
_target addMPEventHandler ["mpkilled", {Null = _this, _playerno execVM "playerkilled.sqf";}];
_target addMPEventHandler ["respawn", {Null = unit, _playerno execVM "playerspawn.sqf";}];
[_target, _playerno] execVM "playerspawn.sqf";