2016-07-24 08:09:11 +00:00
|
|
|
waitUntil {!(isNil "missionInitComplete")};
|
2016-07-24 09:34:55 +00:00
|
|
|
diag_log format["initPlayer called, _this: %1", _this];
|
2016-07-24 07:57:58 +00:00
|
|
|
|
2016-07-24 08:09:11 +00:00
|
|
|
_target = _this select 0;
|
|
|
|
_playerno = _this select 1;
|
2016-07-24 10:39:43 +00:00
|
|
|
|
2016-07-24 09:11:48 +00:00
|
|
|
_target addMPEventHandler ["mpkilled", {Null = _this, _playerno execVM "playerkilled.sqf";}];
|
2016-07-24 10:39:43 +00:00
|
|
|
_target addMPEventHandler ["respawn", {Null = unit, _playerno execVM "playerspawn.sqf";}];
|
2016-07-24 09:11:48 +00:00
|
|
|
|
2016-07-24 08:09:11 +00:00
|
|
|
|
2016-07-24 10:39:43 +00:00
|
|
|
[_target, _playerno] execVM "playerspawn.sqf";
|