Is there something I'm not doing right to freeze a prop when I use
[code]
ent:GetPhysicsObject:EnableMotion(false)
[/code]
It can't be unfrozen with the physicsgun's reload function you have to click each one to make it unfrozen.
[lua]ent:GetPhysicsObject():EnableMotion(false)[/lua]
Forgot the () on GetPhysicsObject
well thats not the code im using im just saying that if you use this function in general that you cant unfreeze a prop with the physicsgun's reload function.
Edit:
OK I don't know what the problem was but its working now after a restart.
But still randomly stops working.
Are you putting that in PhysgunRelease too? (or w/e it is) That should work though.
The physgunRelease is generated by garrysmod so I wouldn't be able to edit it and it work.
GM:PhysgunRelease(ent)
ent:GetPhysicsObject:EnableMotion(false)
end
I'm sorry are you doing something I dont understand?
Yeah. Cause I'm not making a physgun. Its just the physgun release is being abit buggy with the function EnableMotion()
Sorry, you need to Log In to post a reply to this thread.