Difference between revisions of "LUA:SayOOC"

(Created page with "= LUA Functions: SayOOC() = Has the given spawn say the given message in /ooc ==== Syntax ==== SayOOC(param1, param2, [param3]) ==== Parameters ==== ; Required - ''param1'' (...")
 
 
Line 11: Line 11:
 
: ''param1'' is the spawn we want to speak
 
: ''param1'' is the spawn we want to speak
 
: ''param2'' is the message we want the spawn to say
 
: ''param2'' is the message we want the spawn to say
; Optional - ''param3''
+
; Optional - ''param3'' (Spawn)
 
: ''param3'' is the player to send the message to
 
: ''param3'' is the player to send the message to
  

Latest revision as of 22:30, 11 September 2013

LUA Functions: SayOOC()

Has the given spawn say the given message in /ooc


Syntax

SayOOC(param1, param2, [param3])


Parameters

Required - param1 (Spawn), param2 (string)
param1 is the spawn we want to speak
param2 is the message we want the spawn to say
Optional - param3 (Spawn)
param3 is the player to send the message to


Usage

function hailed(NPC, Spawn)
    SayOOC(NPC, "This is me talking in ooc")
end

When hailed the NPC will talk in /ooc

Notes

If param3 is given the message will only go to the given player, else it will go to all players in range