Blockland Forums > Suggestions & Requests
Player-type that doesn't swim?
Plastiware:
I'm wondering if it would be possible to make a playertype that cannot swim, and instead sinks in water, with increased drag and decreased gravity, but otherwise normal player movement and animation.
Advanced Bot:
Someone was trying to figure this out in the coding section as well.
honytawk:
If you add a very high drag to the playertype, it can not move in water.
If you add a high density, it will sink to the bottom.
Advanced Bot:
--- Quote from: honytawk on March 20, 2014, 07:39:55 AM ---If you add a high density, it will sink to the bottom.
--- End quote ---
You mean mass... I don't think there is a density variable in the player datablock class..
honytawk:
--- Quote from: Advanced Bot on March 20, 2014, 07:56:04 AM ---You mean mass... I don't think there is a density variable in the player datablock class..
--- End quote ---
Yeah, this was from the top of my head, I do indeed mean mass.
I don't know if it inflicts with anything else, thought.
It could be that if the mass is increased, the player isn't able to jump high enough anymore.
In that case you'll need to increase the jumpforce and maybe also the runforce.