BIS_fnc_lookAtArray

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.78
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.78

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";
*/
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)

Syntax

Syntax:
[] call BIS_fnc_lookAtArray
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:
Example needed

Additional Information

Execution:
call
Multiplayer:
-
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To