SelectionCommandModule
A static class in Root.Township, Alta.Console.Commands.
Console module select (alias s): picks a networked entity as the console's current selection and moves, snaps, exports or destroys it. On simple servers needs debug_features.
- Listed in Console, logging and analytics
- Nested types
MovingModule,RotatingModule - Attributes
Module,NonSimpleServer,Alias
Fields
1 private and internal field
Methods
10 private and internal methods
| Member | What it is |
|---|---|
private static void ClearSelection() | select unselect: clears the current selection. |
private static void DestroySelection() | select destroy: destroys the selected entity through its spawner and clears the selection. |
private static string ExportToString() | select tostring: returns the selected prefab's save as a string (for spawn string) and copies it to the clipboard. |
private static IEnumerable<NetworkEntityInfo> FindObjects(Player player, float distance = 10) | select find: lists prefab roots of all loaded entities within a distance of the player (default 10). |
private static void FindPrefab(NetworkPrefab prefab, Player player) | select prefab: selects the nearest instance of the given prefab to the player. |
private static EntityInfo Get(uint identifier = 0) | select get: returns the current selection, or the entity with the given ID. |
private static void LookAt(Player player, bool isRotatingAllAxis = false) | select look-at: turns the selection to face a player's head, flat on the ground unless rotating all axes. |
private static string SelectEntity(uint identifier) | select: selects the entity with the given ID, or errors if none. |
private static void SnapToGround() | select snap-ground: moves the selection down to the first thing a raycast hits within 1000 units. |
private static void SnapToOtherObject(uint identifier) | select snap-to: copies another entity's position and rotation onto the selection. |