• Need help with PhysObj:EnableCollisions
    6 replies, posted
Hey Facepunch, I need a code which uses PhysObj:EnableCollisions to make the prop I spawn with no collisions. EDIT: Needs to be clientside script, thanks!
[code]Entity:GetPhysicsObject():EnableCollisions( false )[/code]
[QUOTE=Handsome Matt;45546983]What? Give some more context.[/QUOTE] Basically I need a script for when I spawn any prop it has no collisions or no gravity.
You can't do that with clientside Lua.
[QUOTE=Robotboy655;45547064]You can't do that with clientside Lua.[/QUOTE] You can in the context menu so that's got me confused if you can't with clientside Lua. Plus Falco can spawn props with no gravity or no collisions.
[QUOTE=JohnDoe55;45547129]You can in the context menu so that's got me confused if you can't with clientside Lua. Plus Falco can spawn props with no gravity or no collisions.[/QUOTE] Both use serverside Lua to do it. Context menu sends a net message to server to do it's bussiness, FPP too.
Sorry, you need to Log In to post a reply to this thread.