Skip to content

Metatable:Npc

Stefan A. Brannfjell edited this page Dec 19, 2017 · 4 revisions

The Npc metatable is an extention of the Creature metatable, and so can handle those methods as well.

Available methods:

getSpeechBubble()
isNpc()
setMasterPos(pos, radius)
setSpeechBubble(speechBubble)


getSpeechBubble()

Description: N/A
Parameters: None
Returns: N/A
Example:

local npc = Npc(...)
npc:getSpeechBubble()

Added in version: 1.0


isNpc()

Description: N/A
Parameters: None
Returns: N/A
Example:

local npc = Npc(...)
npc:isNpc()

Added in version: 1.0


setMasterPos(pos[, radius])

Description: N/A
Parameters:

  • pos - No description
  • radius - (optional)
Returns: N/A
Example:
local npc = Npc(...)
npc:setMasterPos(Position(), nil)

Added in version: 1.0


setSpeechBubble(speechBubble)

Description: N/A
Parameters:

  • speechBubble - No description
Returns: N/A
Example:
local npc = Npc(...)
npc:setSpeechBubble(unknown)

Added in version: 1.0

Clone this wiki locally