From 505f412e42bef57ab102c0c64c0382c6d8a38d7a Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Sun, 24 Jul 2016 14:10:23 +0300 Subject: [PATCH] dem trioggers aint triggering --- helotraining.Altis/playerspawn.sqf | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/helotraining.Altis/playerspawn.sqf b/helotraining.Altis/playerspawn.sqf index 1e05c8e..9e179ee 100644 --- a/helotraining.Altis/playerspawn.sqf +++ b/helotraining.Altis/playerspawn.sqf @@ -2,16 +2,19 @@ diag_log format["playerspawn called, _this: %1", _this]; _target = _this select 0; _playerno = _this select 1; playersArray set [_playerno, _target]; -publicVariable "playersArray"; - -_target addEventHandler ["killed", {Null = _this, _playerno execVM "playerkilled.sqf";}]; -_target addMPEventHandler ["mpkilled", {Null = _this, _playerno execVM "playerkilled.sqf";}]; -_target addEventHandler ["respawn", {Null = unit, _playerno execVM "playerspawn.sqf";}]; +(playersArray select _playerno) addEventHandler ["killed", {Null = _this, _playerno execVM "playerkilled.sqf";}]; +(playersArray select _playerno) addMPEventHandler ["mpkilled", {Null = _this, _playerno execVM "playerkilled.sqf";}]; +(playersArray select _playerno) addEventHandler ["respawn", {Null = unit, _playerno execVM "playerspawn.sqf";}]; +(playersArray select _playerno) addMPEventHandler ["mprespawn", {Null = unit, _playerno execVM "playerspawn.sqf";}]; ferryingArray set [_playerno, false]; landingCompleteArray set [_playerno, false]; -publicVariable "ferryingArray"; -publicVariable "landingCompleteArray"; + null = [(playersArray select _playerno), lzList, [], _playerno] execVM "createObj.sqf"; + (playersArray select _playerno) addItem "SatchelCharge_Remote_Mag"; (playersArray select _playerno) addweapon "NVGoggles"; + +publicVariable "playersArray"; +publicVariable "ferryingArray"; +publicVariable "landingCompleteArray";