BIS fnc sceneGetParticipants: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)<nowiki\/>\[\[([a-zA-Z0-9_]+)\]\](.*)<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "= <code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-_]+)\]\]([^<]*)<\/code>" to "= <code>$1$2$3</code>")
Line 25: Line 25:
|r1= [[Array]] of units in ''unit'''s group within ''maxDistance'' from ''unit''
|r1= [[Array]] of units in ''unit'''s group within ''maxDistance'' from ''unit''


|x1= <code>[player, 20] [[call]] [[BIS_fnc_sceneGetParticipants]];</code>
|x1= <code>[player, 20] call [[BIS_fnc_sceneGetParticipants]];</code>


|seealso=
|seealso=
}}
}}

Revision as of 17:56, 13 July 2022

Hover & click on the images for description

Description

Description:
gets members of unit's group who are in unit's range.
Execution:
call
Groups:
Scenes

Syntax

Syntax:
[unit, maxDistance] call BIS_fnc_sceneGetParticipants
Parameters:
unit: Object - if nil is passed, player is used - nil must then not be used on a dedicated server
maxDistance: Number - if nil is passed, 30 is used.
Return Value:
Array of units in unit's group within maxDistance from unit

Examples

Example 1:
[player, 20] call BIS_fnc_sceneGetParticipants;

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