05-18-2017, 07:37 PM 
		
	
	
		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:
my error:
any help is greatly appreciated
	
	
	
	
	
my code:
Code:
function OnKilled(World)
    World:BroadcastChat("Death Lingers...");
    return true;
endmy 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
	
