First check if the entity is a player, then use this [b][url=http://wiki.garrysmod.com/?title=Entity.GetVelocity]Entity.GetVelocity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Use the example on the wiki
Use this to check if the entity is a player
[lua]if ent:IsValid() and ent:IsPlayer() then
--function here
end[/lua]
[URL=http://www.facepunch.com/showthread.php?t=931152][b]What do you need help with? V1[/b][/URL] For your small, quick questions.
[QUOTE=Busymonkey;22122355][URL=http://www.facepunch.com/showthread.php?t=931152][b]What do you need help with? V1[/b][/URL] For your small, quick questions.[/QUOTE]
Are you getting paid for this? I swear you have linked that everywhere I look.
[QUOTE=sintwin;22122368]Are you getting paid for this? I swear you have linked that everywhere I look.[/QUOTE]
I guess because this is actually a simple question, and most questions people ask are generally simple.
[QUOTE=sintwin;22122368]Are you getting paid for this? I swear you have linked that everywhere I look.[/QUOTE]
Haha, sadly; No. I do not get paid.
It's just, I'm abit tired of seeing threads, where their questions are like, one line or something.
And CapsAdmin created the thread for those quick questions.
Because CapsAdmin is a special wittle guy :dance:
:love:
And how can I forget you Busy :3:
[QUOTE=HeavyMtl123;22120065]Use this to check if the entity is a player
[lua]if ent:IsValid() and ent:IsPlayer() then
--function here
end[/lua][/QUOTE]
Not needed just use
[lua]
LocalPlayer()
[/lua]
since he is drawing it on client anyway
Sorry, you need to Log In to post a reply to this thread.