Disable Swimming
by Walker Twyman · in Torque 3D Professional · 03/16/2011 (10:01 am) · 2 replies
I noticed that in T3D that swimming is enabled by default. While I am sure there are a large number of people that like it, I was wondering if there was a simple way to disable it. I don't mind leaving the coding/functionality in the engine (I might even use it in the future, who knows). Perhaps there is a place in the source or script where I can disable it easily? Thanks in advance!
About the author
Torque Owner Ivan Mandzhukov
Liman3D
bool swimming = mWaterCoverage > 0.65f; if ( swimming != mSwimming ) { if ( !isGhost() ) { String buf = swimming ? "onStartSwim" : "onStopSwim"; Con::executef( mDataBlock, buf, scriptThis() ); } mSwimming = swimming; }and replace with