mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
943 B
943 B
layout | title | description | group | order | parent | mod | version | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wiki | Switch Units Framework | Explains how to set-up switch units. | framework | 5 | wiki | ace |
|
1. Overview
Once this player spawns and can switch units, all controllable AI will be marked on his map and he'll be able to click on the map to switch to this unit. The initial unit will be prone to damage, but has no equipment and can't run. So it would be wise to hide or move this unit far from other players.
The module settings define which side a player can control or how big the radius of the safe zone is. The safe zone is a circular zone around AI units that must be clear from players of an opposing side to be able to switch to.
2. Scripting
2.1 Enable Player AI Control
To enable a player to control AI execute the following on it:
this setVariable ["ACE_CanSwitchUnits", true];