2015-04-12 01:36:10 +00:00
/*
* Author: Nou
* Turn a laser designator on.
*
* Arguments:
* 0: Emitter <object>
* 1: Owner <object>
2015-04-12 17:52:50 +00:00
* 2: Method, can be code, which emitter and owner are passed to, a string function name, an array with a position memory point and weapon name, or an array with a position memory point, a vector begining memory point, and vector ending memory point.
2015-04-12 01:36:10 +00:00
* 3: Wavelength (1550nm is common eye safe) <number>
* 4: Laser code <number>
* 5: Beam divergence (in mils off beam center).
*
2016-06-18 09:50:41 +00:00
* Return Value:
2015-04-12 01:36:10 +00:00
* String, UUID for sending to laserOff function.
*/
2015-04-12 18:01:22 +00:00
2015-04-12 01:36:10 +00:00
#include "script_component.hpp"
private ["_uuid", "_args"];
2016-03-02 10:01:39 +00:00
_uuid = format["%1%2%3", floor diag_tickTime, floor random 1000, floor random 10000];
_args = [_uuid, _this];
2016-05-31 20:36:08 +00:00
["ace_laserOn", _args] call CBA_fnc_globalEvent;
2016-03-02 10:01:39 +00:00
_uuid;