SetNPCHeading

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
SetNPCHeading

Type: Function
Context: Server
Introduced: v1.0

Description

Set's the specified NPC's heading (rotation).

Syntax

SetNPCHeading(npc, heading)

Parameters

  • npc
    The Npc identifier.
  • heading
    The heading in floats.

Return Value

  • This function true on success.

Example

SetNPCHeading(npcId, 90.0)

See also