2015-06-05 07:34:27 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
ADDON = false;
|
|
|
|
|
2016-11-23 19:35:25 +00:00
|
|
|
PREP_RECOMPILE_START;
|
2016-02-22 14:20:36 +00:00
|
|
|
#include "XEH_PREP.hpp"
|
2016-11-23 19:35:25 +00:00
|
|
|
PREP_RECOMPILE_END;
|
2015-06-05 07:34:27 +00:00
|
|
|
|
2017-12-10 18:01: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;
|