Well, when my "Notify" function is called the player can only see the Notification if he looks in a specific direction, otherwise it won't show at all or will flash on and off. Is this due to a clientside graphics issue, or something else entirely.
[lua]
local META = FindMetaTable("Player")
function META:Notify ( Text, Length )
if SERVER then
umsg.Start('_Notify', self)
umsg.String(Text)
umsg.End()
end
end
[/lua]
[lua]
function DisplayNotify(msg)
local txt = msg:ReadString()
GAMEMODE:AddNotify(txt, NOTIFY_ERROR, 5)
surface.PlaySound("ambient/water/drip" .. math.random(1, 4) .. ".wav")
print(txt)
end
usermessage.Hook("_Notify", DisplayNotify)
[/lua]
Try using a different hook name.
Also, do this in console:
[code]lua_run_cl GAMEMODE:AddNotify( "This is a test!", NOTIFY_ERROR, 5 )[/code]
And tell me if that still flashes or whatever.
Yes, it still flashes/only appears when I look toward Xpoint.
Sorry, you need to Log In to post a reply to this thread.