BIS fnc sceneGetParticipants: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Scenes(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Scenes |GROUP1= | |gr1 = Scenes |GROUP1= | ||
| gets members of unit's group who are in unit's range. |DESCRIPTION= | | gets members of unit's group who are in unit's range. |DESCRIPTION= | ||
| [unit, maxDistance] call [[BIS_fnc_sceneGetParticipants]] |SYNTAX= | | [unit, maxDistance] call [[BIS_fnc_sceneGetParticipants]] |SYNTAX= | ||
Line 19: | Line 16: | ||
| [[Array]] of units in ''unit'''s group within ''maxDistance'' from ''unit'' |RETURNVALUE= | | [[Array]] of units in ''unit'''s group within ''maxDistance'' from ''unit'' |RETURNVALUE= | ||
|x1= <code><nowiki>[</nowiki>[[player]], 20] [[call]] [[BIS_fnc_sceneGetParticipants]];</code> |EXAMPLE1= | |x1= <code><nowiki>[</nowiki>[[player]], 20] [[call]] [[BIS_fnc_sceneGetParticipants]];</code> |EXAMPLE1= | ||
| |SEEALSO= | | |SEEALSO= |
Revision as of 23:44, 16 January 2021
Description
Syntax
- Syntax:
- [unit, maxDistance] call BIS_fnc_sceneGetParticipants
- Parameters:
- unit: Object - if nil is passed, player is used. Warning: 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