ACE3/addons/spottingscope/XEH_preInit.sqf

20 lines
595 B
Plaintext
Raw Normal View History

2015-06-05 07:34:27 +00:00
#include "script_component.hpp"
ADDON = false;
PREP_RECOMPILE_START;
2016-02-22 14:20:36 +00:00
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;
2015-06-05 07:34:27 +00:00
["ACE_SpottingScopeObject", "killed", {
params ["_wreck"];
private _tube = "ACE_SpottingScope_tube" createVehicle [0,0,0];
_tube setDir (getDir _wreck - 180);
_tube setPosASL AGLToASL (_wreck modelToWorld (_wreck selectionPosition "destructionEffect"));
_tube setVelocity [1 - random 2, 1 - random 2, 4];
_tube addTorque (vectorNormalized [1 - random 2, 1 - random 2, 1 - random 2] vectorMultiply 4);
}] call CBA_fnc_addClassEventHandler;
2015-06-05 07:34:27 +00:00
ADDON = true;