BIS fnc lookAtArray: Difference between revisions
Jump to navigation
Jump to search
m (filled page) |
m (Text replacement - "\[\[Category\:Function Group\: Systems(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 50: | Line 50: | ||
}} | }} | ||
[[Category:Functions|{{uc:lookAtArray}}]] | [[Category:Functions|{{uc:lookAtArray}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:lookAtArray}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:lookAtArray}}]] |
Revision as of 09:55, 12 October 2020
Description
- Description:
- Executes a code when one of the specified objects is looked at (player's cursor pointed towards it) for enough time
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [initialize, lookAtData] call BIS_fnc_lookAtArray
- Parameters:
- initialize: Boolean - True to initialize, false to remove it
- lookAtData: Array - An array with arrays of look-up-data in form of:
- Return Value:
- Nothing
Examples
- Example 1:
_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";
Additional Information
- See also:
- BIS_fnc_lookAtArrayEH
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