Hello. Is is possible to disable object pushing by bumping into it, without freezing the object or setting the players mass to 1 ?
Example: You bump into a TV and the TV moves. I want the TV to stand still, even if you bump into it. Can i do this in Lua?
I tried with setting the player's mass to 1. You can't move objects if you bump into them, but if you crouch, you can...
Any ideas?
use
[url]http://wiki.garrysmod.com/?title=Entity.PhysWake[/url]
You mean Freeze All Props and then what? How would this help me? I don't think you understand what i want to accomplish. * I want the TV to stand still, even if you bump into it*
You could use [url=http://developer.valvesoftware.com/wiki/Prop_dynamic]prop_dynamic[/url]s. They won't move with physics and can be solid.
[QUOTE=deluvas;18094240]You mean Freeze All Props and then what? How would this help me? I don't think you understand what i want to accomplish. * I want the TV to stand still, even if you bump into it*[/QUOTE]
So are you ever going to be moving the tv?
If you played Left4Dead, you'd see that you can't move objects ( example: a wooden crate ) if you bump into them, but you can push them a little (by adding velocity of course) with the secondary attack. That's what i want to do in Garry's Mod.
You could make them entities and then program a ENT:PhysicsCollide to push the player back slightly
Sorry, you need to Log In to post a reply to this thread.