ace_switchunits_fnc_isValidAi
Description
Checks if AI is a valid target for switching.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | unit | OBJECT |
Return Value
Description | Datatype(s) |
---|---|
Valid AI | BOOL |
Example
[_unit] call ace_switchunits_fnc_isValidAi
Authors
- bux578
ace_switchunits_fnc_nearestPlayers
Description
Returns an array of alive players in a given radius around a given location
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Center position | POSTION | |
1 | Radius | NUMBER |
Return Value
Description | Datatype(s) |
---|---|
Player units <ARRAY | OBJECT |
Example
[[300,300,0], 100] call ace_switchunits_fnc_nearestPlayers
Authors
- bux578
ace_switchunits_fnc_switchBack
Description
Switches back to the original player unit
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Original player unit | OBJECT | |
1 | Respawned unit | OBJECT |
Return Value
None
Example
[_originalPlayerUnit, _currentUnit] call ace_switchunits_fnc_switchBack
Authors
- bux578
ace_switchunits_fnc_switchUnit
Description
Switches to the new given player unit
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | the unit to switch to | OBJECT |
Return Value
None
Example
[_unit] call ace_switchunits_fnc_switchUnit
Authors
- bux578