Skip to content

← Previous | Next →


lookCoords

Description

Makes the NPC turn to face a specific set of coordinates.

Basic information

Name Type Possibilities
lookCoords behaviour 2

Parameters

# Name Type Mandatory Description Multiple
1 x number Yes The X coordinate to look at. No
2 y number Yes The Y coordinate to look at. No
3 z number Yes The Z coordinate to look at. No

Outputs

# Description
1 The NPC is already facing the specified coordinates.
2 The NPC turns to face the specified coordinates.

Example


  NPC 

  name Watcher 
  model s_m_y_cop_01 
  position -1020.72 4839.78 258.30 0.0 

  interaction 
    nothing 

  behaviour 
    lookCoords 150.0 200.0 300.0