mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Fix main menu mission (#7594)
* Arsenal - Fix main menu mission * fix double space * Add note
This commit is contained in:
parent
3db9a24007
commit
e89c172d34
@ -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');
|
||||
};
|
||||
};
|
||||
|
@ -1,4 +1,6 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
INFO("Loading VR Mission");
|
||||
|
||||
PREP(onPause);
|
||||
PREP(createTarget);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user