No categories assigned

LUA:Shout

Revision as of 13:45, 12 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: Shout() = Makes the given spawn /shout the given message ==== Syntax ==== Shout(param1, param2, [param3]) ==== Parameters ==== ; Required - ''param1'' (Spawn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: Shout()

Makes the given spawn /shout the given message


Syntax

Shout(param1, param2, [param3])


Parameters

Required - param1 (Spawn), param2 (string)
param1 is the spawn we want to talk
param2 is the message we want it to say
Optional - param3 (Spawn)
param3 is a specific player to go to


Usage

function hailed(NPC, Spawn)
    Shout(NPC, "This is me shouting")
end

When this NPC is hailed it will shout to all players in range

Notes

param3 must be a player, if it is included the shout will only go to that player, if it is left out the shout will go to all players in range