[PHP]function ITEM:onUse(activator, caller)
if ( activator:IsPlayer() ) then
activator:SetDSP(6)
end
function WeedOff(activator, caller)
if ( activator:IsPlayer() ) then
activator:SetDSP(1)
end
end
timer.Create("WeedOff", 30, 1, WeedOff, activator)
end;[/PHP]
Currently thats the code I have right now.
I want to know if I can add motion blur to that?
It is being done server side. I can't make any other files the way my game mode is setup so it has to be done in a file called sh_weed.lua.
usermessages, they are your friends:sun:
Explain, I'm looking at the wiki right now.
server
[lua]
umsg.Start("lolname", ply)
umsg.Vector/String/Float/whatever(value)
umsg.End()
[/lua]
client
[lua]
usermessage.Hook("lolname", function(message)
local value = message:ReadVector/String/Float/whatever()
end)
[/lua]
Sorry for the brief explanation, I really gotta go to sleep
Sorry, you need to Log In to post a reply to this thread.