GetNPCPropertyValue

From Onset Developer Wiki
Revision as of 14:24, 26 June 2021 by FlyingFork (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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