So I am trying to make a function that when you run the console command it makes you jump and pushes you forward abit, I figured running the command +jump then using [b][url=http://wiki.garrysmod.com/?title=Entity.SetVelocity]Entity.SetVelocity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] but I'm not sure how to use SetVelocity, any ideas?
[QUOTE=c-unit;25799241]So I am trying to make a function that when you run the console command it makes you jump and pushes you forward abit, I figured running the command +jump then using [b][url=http://wiki.garrysmod.com/?title=Entity.SetVelocity]Entity.SetVelocity [img_thumb]http://wiki.garrysmod.com/favicon.ico[/img_thumb][/url][/b] but I'm not sure how to use SetVelocity, any ideas?[/QUOTE]
SetVelocity is a peculiar function because it will actually add whatever you put in to the velocity for the entity.
For example, if you wanted to set the velocity of an entity to zero, doing ent:SetVelocity(Vector(0,0,0)) will do nothing.
Instead, you would have to do set velocity with the negated current velocity of the entity.
I hope I have enlightened you on the usage of this function.
I understand what you mean but I don't understand how I could make a player do it
[lua]
concommand.Add("dash", function()
for k, v in pairs(player.GetAll()) do
--set velocity i was guessing
end
end)[/lua]
How can I set it make the jump forward alittle bit
[QUOTE=c-unit;25799497]I understand what you mean but I don't understand how I could make a player do it
[lua]
concommand.Add("dash", function()
for k, v in pairs(player.GetAll()) do
--set velocity i was guessing
end
end)[/lua]
How can I set it make the jump forward alittle bit[/QUOTE]
concommand.Add("dash", function(ply, command, args)
ply:SetVelocity(Vector(0,0,100)) --modify the numbers inside the Vector() as necessary this will make them go up
end)
[QUOTE=lua guy asdf;25799637]concommand.Add("dash", function(ply, command, args)
ply:SetVelocity(Vector(0,0,100)) --modify the numbers inside the Vector() as necessary this will make them go up
end)[/QUOTE]
get out fag
[editline]2nd November 2010[/editline]
unit, ignore this kid please
Alright, thanks!
Looking at your recent posts C-Unit, I see you have been going around asking people to do your work for you. Next time try to figure something out before going begging on Facepunch. I wont be so generous next time. This really wasn't that difficult to figure out.
[editline]2nd November 2010[/editline]
[QUOTE=bitch nigga ass;25799711]get out fag
[editline]2nd November 2010[/editline]
unit, ignore this kid please[/QUOTE]
Bitch Nigga, why do you want C-Unit to ignore me?
[QUOTE=lua guy asdf;25799765]Looking at your recent posts C-Unit, I see you have been going around asking people to do your work for you. Next time try to figure something out before going begging on Facepunch. I wont be so generous next time. This really wasn't that difficult to figure out.
[editline]2nd November 2010[/editline]
Bitch Nigga, why do you want C-Unit to ignore me?[/QUOTE]
because you're a fag
[img]http://superfrog.org/trollface.jpg[/img]
[editline]niggers[/editline]
So is Miketoast
[highlight](User was banned for this post ("Meme/flaming" - SteveUK))[/highlight]
because you're 12
[editline]2nd November 2010[/editline]
and gay
[editline]2nd November 2010[/editline]
and dumb
[editline]2nd November 2010[/editline]
and gay
[QUOTE=bitch nigga ass;25799848]because you're 12
[editline]2nd November 2010[/editline]
and gay
[editline]2nd November 2010[/editline]
and dumb
[editline]2nd November 2010[/editline]
and gay[/QUOTE]
Dual accounts awesome
It's a shame really. C-Unit you were thankful of my help just a few posts ago.
[QUOTE=lua guy asdf;25799926]It's a shame really. C-Unit you were thankful of my help just a few posts ago.[/QUOTE]
but you are a fag and gays are distugistng and i have to stay away from all gays xDD
[editline]1st November 2010[/editline]
except seth
y so mad
i see you're getting you're raging homo friend to rate us dumb and rate you agree how about you rate yourself and be cool like me
[QUOTE=c-unit;25799938]but you are a fag and gays are distugistng and i have to stay away from all gays xDD
[editline]1st November 2010[/editline]
except seth[/QUOTE]
You were thanking me minutes ago and now you hate me. All I pointed out was that you should try to figure things out on your own before you go begging.
[QUOTE=c-unit;25799991][media]http://www.pornhub.com/view_video.php?viewkey=62959863[/media][/QUOTE]
Look man you suck at being a troll. I'd give it a 0/10 for effort, hell a -5/10 for making two accounts.
umad bro
^ye
The argument has degenerated to "umad bro"s - this is pointless. All I want to know is why you take such offense to my suggestion that you should try to figure things out before begging on Facepunch.
cuz u r a fag
[editline]2nd November 2010[/editline]
umad bro
What the fuck just happened here?
??????????
lua guy asdf = little kid with no idea what he's talking about
seth = (wants to be a)troll
c-unit = seth's fanboy
tl;dr: This thread of full of fuck.
I'm not seth's fanboy. He's my babies daddy =D
[QUOTE=c-unit;25805084]I'm not seth's fanboy. He's my babies daddy =D[/QUOTE]
Same.
So much shit in this thraed.
Sorry, you need to Log In to post a reply to this thread.