is the a lua code to stop props in place in the middle of the air
i know you can change it to do this in the Q menu
but i want to make it so it works in lua
edit: "physics timescale" thats what i want to change with lua
is it possable
Hmm you may be able too use something like
[b][url=wiki.garrysmod.com/?title=Entity.SetGravity]Entity.SetGravity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
or you could use
[b][url=wiki.garrysmod.com/?title=Entity.SetVelocity]Entity.SetVelocity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
But I dont think it will be easy
phys_timescale
i tryed
game.ConsoleCommand( "phys_timescale" "0.0" )
and it broke the weapon
whatelse is there
[url]http://wiki.garrysmod.com/?title=Lua[/url]
Do this before you do anything else.
that didnt help
at lest you could have posted a link to the right article
(not to sound mean or anything)
also i still cant get it to work
Facepalm, here
value = 0.5
game.ConsoleCommand("phys_timescale "..value.."/n")
still not working...
Wait, what do you want it for, because if you just want it to make it so when you let go of a prop with the physgun it freezes theres different ways to do that.
[editline]02:12AM[/editline]
phys:EnableMotion(false) Thats how its done for freezing like with the physgun...but for this one you would need to identify the prop
game.ConsoleCommand( "phys_timescale .5\n" )
Had your slash the wrong way there.
You guys have something against RunConsoleCommand?
[QUOTE=XCIV;20640399]You guys have something against RunConsoleCommand?[/QUOTE]
RunConsoleCommand is for client
Actually, it's shared. If on the server, it acts as game.ConCommand().
still not working....
garry must have disabled it or something =/
[QUOTE=animefan122;20647072]still not working....
garry must have disabled it or something =/[/QUOTE]
And you have sv_cheats 1 ?
your sopost to do that?
and no one tell me why Dx
Sorry, you need to Log In to post a reply to this thread.