No categories assigned
LUA:Shout
- Last edited 12 years ago by I need to Update My Profile
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