Broadcast message
#1
im trying to broadcast a message when an entity dies (yes i have the hook connected to the function bla bla) and i get an error when trying to execute 

my code:
Code:
function OnKilled(World) World:BroadcastChat("Death Lingers..."); return true; end

my error:
Code:
LUA: Plugins/CustomPlugin/CustomPlugin.lua:25: attempt to call method 'BroadcastChat' (a nil value) Stack trace:   Plugins/CustomPlugin/CustomPlugin.lua(25): (no name) Stack trace end Error in <attached> calling function <callback>()

any help is greatly appreciated Smile
Reply
Thanks given by:


Messages In This Thread
Broadcast message - by nrgjrteherh435 - 05-18-2017, 07:37 PM
RE: Broadcast message - by Mathias - 05-18-2017, 07:47 PM



Users browsing this thread: 1 Guest(s)