2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-08-13 09:29:01 +00:00
|
|
|
/*
|
|
|
|
* Author: VKing
|
|
|
|
* Spawns a flare on the ground for tripflare trigger
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Position <ARRAY>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [getPos groundFlare] call ace_explosives_fnc_spawnFlare
|
|
|
|
*
|
|
|
|
* Public: no
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_posX","_posY","_posZ"];
|
|
|
|
TRACE_3("Params",_posX,_posY,_posZ);
|
|
|
|
|
|
|
|
private _flare = "ACE_TripFlare_FlareEffect" createVehicle [_posX,_posY,_posZ];
|
|
|
|
|
|
|
|
TRACE_1("",_flare);
|
2016-11-09 19:02:48 +00:00
|
|
|
|
2018-11-09 18:27:43 +00:00
|
|
|
["ace_tripflareTriggered", [_flare, [_posX,_posY,_posZ]]] call CBA_fnc_globalEvent;
|
|
|
|
|
2016-11-09 19:02:48 +00:00
|
|
|
nil
|