Arsenal - Fix main menu mission (#7594)

* Arsenal - Fix main menu mission

* fix double space

* Add note
This commit is contained in:
PabstMirror 2020-03-11 15:09:36 -05:00 committed by GitHub
parent 3db9a24007
commit e89c172d34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -1,11 +1,12 @@
// These files are from the VR mission, not the base addon folder
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
init = QUOTE(call compile preprocessFileLineNumbers 'XEH_preInit.sqf');
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_postInit));
init = QUOTE(call compile preprocessFileLineNumbers 'XEH_postInit.sqf');
};
};

View File

@ -1,4 +1,6 @@
#include "script_component.hpp"
INFO("Loading VR Mission");
PREP(onPause);
PREP(createTarget);

View File

@ -52,6 +52,10 @@ _target setVariable ["origin", _position];
_target addEventHandler ["killed", {
params ["_target"];
// Killed may fire twice, 2nd will be null - https://github.com/acemod/ACE3/pull/7561
if (isNull _target) exitWith { TRACE_1("Ignoring null death",_target); };
private _position = _target getVariable ["origin", position _target];
private _varName = vehicleVarName _target;