GetNPCPropertyValue

From Onset Developer Wiki
GetNPCPropertyValue

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Gets a property value for this entity.

Syntax

GetNPCPropertyValue(npc, PropertyName)

Parameters

  • npc
    The npc identifier
  • PropertyName
    Name of the property variable

Return Value

  • Returns the value.

Example

print("NPC Name: " .. GetNPCPropertyValue(npc, "npc:name"))

See also