mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28e45c2979
* Getter and setter for laser codes * Documentation * Sanitising input
22 lines
437 B
Plaintext
22 lines
437 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: johnb43
|
|
* Sets the laser code on a laser source.
|
|
*
|
|
* Argument:
|
|
* 0: Laser source <OBJECT>
|
|
* 1: Laser code <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [player, 1111] call ace_laser_fnc_setLaserCode;
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params [["_laserSource", objNull, [objNull]], ["_laserCode", ACE_DEFAULT_LASER_CODE, [0]]];
|
|
|
|
_laserSource setVariable [QGVAR(code), _laserCode, true];
|