Skip to main content

LookType

The LookType enum represents different ways an NPC can look at a target.

Values

ValueDescription
LookType.HeadMakes the NPC look only with the head
LookType.BodyMakes the NPC turn around if needed to look with the head

Usage Example

-- Make an NPC look at a position with just the head
npc:LookAt(vec3(100, 50, 200), LookType.Head)

-- Make an NPC turn their body to look at a position
npc:LookAt(vec3(200, 100, 300), LookType.Body)