Quote:
Originally Posted by Tricxta
I don't understand what you're saying but... maybe this is what you're after?
PHP Code:
//#CLIENTSIDE
function onKeyDown(code){
if (!playerswimming)return;
//is on water..
}
Perhaps.. >_>
|
I'm trying to see if there is some equivalent to something like player.defaultwalkspeed.
Basically I'm just trying to stay away from the typical:
if player in water
timeout>timer
disabledefmovement
if(dir keys)
player.x/y +-
I really don't want to have to disabledefmovement if there is another logic to slowing down a player if they are in water/swimming. I tried player.x/y -+= 0.001 and got callstack errors and loop exceeding limits. I could avoid that only moving the x/y onkeypressed I suppose but was just hoping there was a different logic I could approach (like me not even knowing player.defaultwalkspeed was there).