BIS fnc lookAtArray: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Function|= Comments | arma3 |Game name= |1.78|Game version= <!---|arg= local |Multiplayer Arguments=---> <!---|eff= local |Multiplayer Effects=---> | <pre>/* Author: R...") |
m (infobox to template) |
||
Line 45: | Line 45: | ||
sleep 15; | sleep 15; | ||
[false] spawn "BIS_fnc_lookAtArray"; | [false] spawn "BIS_fnc_lookAtArray"; | ||
*/</pre>{{ | */</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description= | ||
|[] call [[BIS_fnc_lookAtArray]]|Syntax= | |[] call [[BIS_fnc_lookAtArray]]|Syntax= |
Revision as of 15:27, 2 April 2019
Description
- Description:
/* Author: Riccardo Argiolas Description: Exectues a code when one of the specified objects is looked at (player's cursor pointed towards it) for enough time. Parameters: Select 0 - ARRAY: list of objects to be looked at Select X - Array element Select 0 - OBJECT: object to be looked at Select 1 - NUMBER: how long do we have to look at it Select 2 - BOOL: whether we shall remove the array entry after the object has been looked at Select 3 - CODE: code to be spawned when we look at the object for enough time Returns: None Examples: _lookAtArray = [ [ BIS_apc, //name of object 2, //time we have to look at it false, //do we destroy the entry after we looked at it {["What a wonderful APC"] call bis_fnc_log;} //code ], [ BIS_otherUnit, 2, false, {["apc looked at"] call bis_fnc_log;} ] ]; [true, _lookAtArray] spawn "BIS_fnc_lookAtArray"; sleep 15; [false] spawn "BIS_fnc_lookAtArray"; */
Template:placeholder- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [] call BIS_fnc_lookAtArray
- Parameters:
- parameter: Datatype - (Optional, default defValue) description
- Return Value:
- Datatype - description
Examples
- Example 1:
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note