GetNPCPropertyValue

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.
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