Velocity

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 **[Entity.SetVelocity

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.SetVelocity)** but I’m not sure how to use SetVelocity, any ideas?

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

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)

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]

Bitch Nigga, why do you want C-Unit to ignore me?

because you’re a fag

http://superfrog.org/trollface.jpg

[editline]niggers[/editline]

So is Miketoast


(User was banned for this post ("Meme/flaming" - SteveUK))

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

Dual accounts awesome

umad br0

hesomad

http://www.skiddiecentral.us/img/butthurt.jpg

It’s a shame really. C-Unit you were thankful of my help just a few posts ago.

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

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.

http://www.pornhub.com/view_video.php?viewkey=62959863

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.