* Re-implemented turn_to command Fixes #385 Fixed a bug in esc_movable blocking player_orients_on_arrival for ESCLocation nodes * docs: Automatic update of API docs * Fixes Co-authored-by: StraToN <StraToN@users.noreply.github.com>
42 lines
752 B
Markdown
42 lines
752 B
Markdown
<!-- Auto-generated from JSON by GDScript docs maker. Do not edit this document directly. -->
|
|
|
|
# TurnToCommand
|
|
|
|
**Extends:** [ESCBaseCommand](../ESCBaseCommand) < [Node](../Node)
|
|
|
|
## Description
|
|
|
|
`turn_to object object_to_face [immediate]`
|
|
|
|
Turns object to face another object.
|
|
|
|
Set immediate to true to show directly switch to the direction and not
|
|
show intermediate angles
|
|
|
|
@ESC
|
|
|
|
## Method Descriptions
|
|
|
|
### configure
|
|
|
|
```gdscript
|
|
func configure() -> ESCCommandArgumentDescriptor
|
|
```
|
|
|
|
Return the descriptor of the arguments of this command
|
|
|
|
### validate
|
|
|
|
```gdscript
|
|
func validate(arguments: Array)
|
|
```
|
|
|
|
Validate wether the given arguments match the command descriptor
|
|
|
|
### run
|
|
|
|
```gdscript
|
|
func run(command_params: Array) -> int
|
|
```
|
|
|
|
Run the command |