mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ada07758c5
* Add Event for tripflare triggering _flare might be useful to delete / replace flare _position is already available, so why not send it too * added documentation also added missing wirecutter event
28 lines
533 B
Plaintext
28 lines
533 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
|