-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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.
getSpeechBubble()
isNpc()
setMasterPos(pos, radius)
setSpeechBubble(speechBubble)
Description: N/A
Parameters: None
Returns: N/A
Example:
local npc = Npc(...)
npc:getSpeechBubble()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local npc = Npc(...)
npc:isNpc()
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- pos - No description
- radius - (optional)
Example:
local npc = Npc(...)
npc:setMasterPos(Position(), nil)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- speechBubble - No description
Example:
local npc = Npc(...)
npc:setSpeechBubble(unknown)
Added in version: 1.0