This commit is contained in:
Balloonpopper
2022-03-15 21:33:45 +11:00
committed by Julian Murgia
parent 1e0862c3f2
commit 2dd931fdd0
2 changed files with 11 additions and 11 deletions

View File

@@ -1,14 +1,14 @@
# `walk object target [speed]`
# `walk object target [walk_fast]`
#
# Moves the specified `ESCPlayer` or movable `ESCItem` to `target`
# while playing the `object`'s walking animation. This command is non-blocking.
# while playing `object`'s walking animation. This command is non-blocking.
# This command will use the normal walk speed by default.
#
# **Parameters**
#
# - *object*: Global ID of the object to move
# - *target*: Global ID of the target object
# - *speed*: The speed the `object` will walk in pixels per second (will
# default to the speed configured on the `object`)
# - *walk_fast*: Whether to walk fast (`true`) or normal speed (`false`).
#
# @ESC
extends ESCBaseCommand
@@ -19,8 +19,8 @@ class_name WalkCommand
func configure() -> ESCCommandArgumentDescriptor:
return ESCCommandArgumentDescriptor.new(
2,
[TYPE_STRING, TYPE_STRING, TYPE_INT],
[null, null, null]
[TYPE_STRING, TYPE_STRING, TYPE_BOOL],
[null, null, false]
)

View File

@@ -1,14 +1,14 @@
# `walk_block object target [speed]`
# `walk_block object target [walk_fast]`
#
# Moves the specified `ESCPlayer` or movable `ESCItem` to `target`
# while playing `object`'s walking animation. This command is blocking.
# This command will use the normal walk speed by default.
#
# **Parameters**
#
# - *object*: Global ID of the object to move
# - *target*: Global ID of the target object
# - *speed*: The speed the `object` will walk in pixels per second (will
# default to the speed configured on the `object`)
# - *walk_fast*: Whether to walk fast (`true`) or normal speed (`false`).
#
# @ESC
extends ESCBaseCommand
@@ -19,8 +19,8 @@ class_name WalkBlockCommand
func configure() -> ESCCommandArgumentDescriptor:
return ESCCommandArgumentDescriptor.new(
2,
[TYPE_STRING, TYPE_STRING, TYPE_INT],
[null, null, null]
[TYPE_STRING, TYPE_STRING, TYPE_BOOL],
[null, null, false]
)