EntityLookAt()

Syntax

EntityLookAt(#Entity, x, y, z [, DirectionX, DirectionY, DirectionZ])
Description
The point (in world unit) that an entity is facing. The position of the entity is not changed.

Parameters

#Entity The entity to use.
x The 'x' position (in world unit) to point the entity at.
y The 'y' position (in world unit) to point the entity at.
z The 'z' position (in world unit) to point the entity at.
DirectionX (optional) The 'x' vector direction of the entity (value between -1.0 and 1.0).
DirectionY (optional) The 'y' vector direction of the entity (value between -1.0 and 1.0).
DirectionZ (optional) The 'z' vector direction of the entity (value between -1.0 and 1.0).

Return value

This function has no return value.

Supported OS

All

<- EntityLinearFactor() - Entity Index - EntityParentNode() ->