mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-04 01:34:07 +00:00
feat: debug features and implement ObjectDebugger (#1846)
Move the -s and base features of inspect to the object debugger (this file is present in an unmodified, live client)
This commit is contained in:
@@ -121,15 +121,15 @@ These commands are primarily for development and testing. The usage of many of t
|
||||
|
||||
## Detailed `/inspect` Usage
|
||||
|
||||
`/inspect <component> (-m <waypoint> | -a <animation> | -s | -p | -f (faction) | -t)`
|
||||
`/inspect <component> (-m <waypoint> | -a <animation> | -p | -f (faction) | -t)`
|
||||
|
||||
Finds the closest entity with the given component or LDF variable (ignoring players and racing cars), printing its ID, distance from the player, and whether it is sleeping, as well as the the IDs of all components the entity has.
|
||||
This info is then shown in a window on the client which the user can navigate
|
||||
|
||||
### `/inspect` Options
|
||||
|
||||
* `-m`: If the entity has a moving platform component, sends it to the given waypoint, or stops the platform if `waypoint` is `-1`.
|
||||
* `-a`: Plays the given animation on the entity.
|
||||
* `-s`: Prints the entity's settings and spawner ID.
|
||||
* `-p`: Prints the entity's position
|
||||
* `-f`: If the entity has a destroyable component, prints whether the entity is smashable and its friendly and enemy faction IDs; if `faction` is specified, adds that faction to the entity.
|
||||
* `-cf`: check if the entity is enemy or friend
|
||||
|
Reference in New Issue
Block a user