EntityZ()

Syntax

Result = EntityZ(#Entity)
Description
Returns the current position of the entity in the world.

Parameters

#Entity The entity to use.
Mode (optional) The mode to get the 'z' position. It can be one of the following value:
  #PB_Absolute: get the absolute 'z' position of the entity in the world (default).
  #PB_Relative: get the 'z' position of the entity relative to its parent.

Return value

Returns the 'z' position of the entity.

See Also

EntityX(), EntityY(), MoveEntity()

Supported OS

All

<- EntityYaw() - Entity Index - FetchEntityMaterial() ->