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