BIS fnc sceneGetParticipants: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling - missing see also) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| gets members of unit's group who are in unit's range. |= | | gets members of unit's group who are in unit's range. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [unit, maxDistance] call [[BIS_fnc_sceneGetParticipants]] |= | | [unit, maxDistance] call [[BIS_fnc_sceneGetParticipants]] |SYNTAX= | ||
|p1= unit: [[Object]] - if [[nil]] is passed, [[player]] is used. ''Warning: must then not be used on a dedicated server'' |= | |p1= unit: [[Object]] - if [[nil]] is passed, [[player]] is used. ''Warning: must then not be used on a dedicated server'' |PARAMETER1= | ||
|p2= maxDistance: [[Number]] - if [[nil]] is passed, 30 is used. |= | |p2= maxDistance: [[Number]] - if [[nil]] is passed, 30 is used. |PARAMETER2= | ||
| [[Array]] of units in ''unit'''s group within ''maxDistance'' from ''unit'' |= | | [[Array]] of units in ''unit'''s group within ''maxDistance'' from ''unit'' |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code><nowiki>[</nowiki>[[player]], 20] [[call]] [[BIS_fnc_sceneGetParticipants]];</code> |= | |x1= <code><nowiki>[</nowiki>[[player]], 20] [[call]] [[BIS_fnc_sceneGetParticipants]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= | | |SEEALSO= | ||
}} | }} |
Revision as of 14:33, 7 April 2019
Description
- Description:
- gets members of unit's group who are in unit's range.
- Execution:
- call
- Groups:
- Uncategorised
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