Playertype code that affects buoyancy?

Author Topic: Playertype code that affects buoyancy?  (Read 344 times)

I was wondering if there was part of the player code that affects buoyancy, so I could make a playertype that doesn't float in water.

You could look to see how the old rowboat is coded.  That is actually a bot that is shaped as a boat.

is the current one the old one?
like the default bot boat

set the playertype's density to a higher value
fiddle around with it to see how fast you want them to sink

also upon the player enters liquid you will want to change them to a new datablock that doesn't have a jump force so they can't swim back up to the top