Setting IPhysObject type

How can I change the physical properties of an entity? Ex: Changing from rubber to metal.


local phys = self.Entity:GetPhysicsObject()

I need to change that to something like


local phys = self.Entity:SetPhysicsObject( type.Metal )

Thanks, bro. :smiley:

[editline]8th January 2011[/editline]

Doesn’t work. Attempt to compare nil with number?

Without code, I cant help you.

You might want to read this: http://www.facepunch.com/threads/792401-How-to-make-a-constructive-quot-help-me-quot-thread