BIS fnc sceneGetParticipants: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 15: | Line 15: | ||
|gr1= Scenes | |gr1= Scenes | ||
| gets members of unit's group who are in unit's range. | |descr= gets members of unit's group who are in unit's range. | ||
|s1=[unit, maxDistance] call [[BIS_fnc_sceneGetParticipants]] | |s1= [unit, maxDistance] call [[BIS_fnc_sceneGetParticipants]] | ||
|p1= unit: [[Object]] - if [[nil]] is passed, [[player]] is used | |p1= unit: [[Object]] - if [[nil]] is passed, [[player]] is used - [[nil]] must then '''not''' be used on a dedicated server | ||
|p2= maxDistance: [[Number]] - if [[nil]] is passed, 30 is used. | |p2= maxDistance: [[Number]] - if [[nil]] is passed, 30 is used. | ||
|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>[<nowiki/>[[player]], 20] [[call]] [[BIS_fnc_sceneGetParticipants]];</code> | |x1= <code>[<nowiki/>[[player]], 20] [[call]] [[BIS_fnc_sceneGetParticipants]];</code> | ||
|seealso= | |||
}} | }} | ||
Revision as of 19:01, 13 June 2021
Description
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