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);
|
2022-05-02 23:03:51 +00:00
|
|
|
_tube setPosASL (_wreck modelToWorldWorld (_wreck selectionPosition "destructionEffect"));
|
2017-12-10 18:01:27 +00:00
|
|
|
_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;
|
|
|
|
|
2019-05-27 15:46:21 +00:00
|
|
|
["ACE_SpottingScopeObject", "GetOut", {
|
|
|
|
params ["_vehicle", "", "_unit"];
|
|
|
|
|
|
|
|
if (local _unit) then {
|
|
|
|
_unit setDir getDir _vehicle;
|
|
|
|
};
|
|
|
|
}] call CBA_fnc_addClassEventHandler;
|
|
|
|
|
2015-06-05 07:34:27 +00:00
|
|
|
ADDON = true;
|