|Description:||Creates an IR Chemlight (only visible with NV equipment) at the selection position |
|Syntax:||[vehicle, action, starton] call fn_vbs_chemlight|
By adding these numbers, multiple functions can be enabled. For instance:
Installs the device, turns it on, and returns its status (1+2=3).
|Return Value:||Array - A nested array, returning one sub-array per vehicle, with the following information:|
[vehicle (Object), whether it has a chemlight (Boolean), chemlight status (Number)].
When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.
Install a chemlight on the player vehicle, query the object, and turn it on:
_chemStats = [vehicle player,7] call fn_vbs_chemlight; // Returns: [[WEST 1-1-A-1:1 (Dylan Young),true,1]]
Install chemlight on all vehicles in the player group and vehicle v1:
[[group player, v1],1]] call fn_vbs_chemlight;