Skip to main content

(787) _AC_WORLD_Z

Effect

Moves the entity of the animation to a tile on the z-axis of the current map over a given amount of frames per tile.

Starts the stepping sound effect.

info

This command only moves the entity. It does not turn the entity in the moving direction.

The x-axis is horizontal and the z-axis is vertical. Coordinate (0, 0) is top left.

Syntax

_AC_WORLD_Z(z, time)
ArgumentDescriptionTypesRequired
zThe new z-positionFloatRequired
timeThe amount of time to move per tile, in framesFloatRequired

Example

anm_dummy:
_AC_WORLD_Z(45, 8)
_ACMD_END()

The above script will move the entity to tile 45 on the z-axis of the current map.