ACE3/addons/explosives/functions/fnc_spawnFlare.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

28 lines
536 B
Plaintext

#include "..\script_component.hpp"
/*
* 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);
["ace_tripflareTriggered", [_flare, [_posX,_posY,_posZ]]] call CBA_fnc_globalEvent;
nil