BIS_fnc_lookAtArray

From Bohemia Interactive Community
Revision as of 16:27, 2 April 2019 by Erentar (talk | contribs) (infobox to template)
Jump to navigation Jump to search
Hover & click on the images for description

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