
| destroy() | Destroys this commandable. [...] | |
Destroys this commandable. [...] | ||
| set_command(command) | Give this commandable a command. | |
Give this commandable a command. | ||
| set_distraction_command(command) | Give this commandable a distraction command. | |
Give this commandable a distraction command. | ||
| release_from_spawner() | Release the commandable from the spawner. [...] | |
Release the commandable from the spawner. [...] | ||
| add_member(member) | Adds a member to this UnitGroup. [...] | |
Adds a member to this UnitGroup. [...] | ||
| set_autonomous() | Make this group autonomous. [...] | |
Make this group autonomous. [...] | ||
| start_moving() | Make the group start moving even if some of its members haven't yet arrived. | |
Make the group start moving even if some of its members haven't yet arrived. | ||
| is_unit_group | :: R boolean | If this commandable is UnitGroup. |
If this commandable is UnitGroup. | ||
| is_entity | :: R boolean | If this commandable is Entity. |
If this commandable is Entity. | ||
| surface | :: R LuaSurface | Surface this commandable is on. |
Surface this commandable is on. | ||
| position | :: R MapPosition | Current position of this commandable. [...] |
Current position of this commandable. [...] | ||
| force | :: R LuaForce | The force of this commandable. |
The force of this commandable. | ||
| unique_id | :: R uint32 | Unique identifier of this commandable. |
Unique identifier of this commandable. | ||
| has_command | :: R boolean | If this commandable has a command assigned. |
If this commandable has a command assigned. | ||
| command | :: R Command? | The command of this commandable, if any. |
The command of this commandable, if any. | ||
| distraction_command | :: R Command? | The distraction command of this commandable, if any. |
The distraction command of this commandable, if any. | ||
| parent_group | :: R LuaCommandable? | The unit group this commandable is a member of, if any. |
The unit group this commandable is a member of, if any. | ||
| spawner | :: R LuaEntity? | The spawner associated with this commandable, if any. |
The spawner associated with this commandable, if any. | ||
| moving_state | :: R defines.moving_state | Current moving state of the commandable's behavior |
Current moving state of the commandable's behavior | ||
| state | :: R defines.group_state | Whether this group is gathering, moving or attacking. |
Whether this group is gathering, moving or attacking. | ||
| members | :: R array[LuaEntity] | All entity members of this unit group, recursive (if unit group is member of this unit group, its members will be returned here). |
All entity members of this unit group, recursive (if unit group is member of this unit group, its members will be returned here). | ||
| commandable_members | :: R array[LuaCommandable] | Non recursively returns all members of this unit group. |
Non recursively returns all members of this unit group. | ||
| is_script_driven | :: R boolean | Whether this unit group is controlled by a script or by the game engine. [...] |
Whether this unit group is controlled by a script or by the game engine. [...] | ||
| entity | :: R LuaEntity | Returns entity object for this commandable. |
Returns entity object for this commandable. | ||
| valid | :: R boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
| object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] | ||


















