January 2, 201610 yr Hello guys, would love to know how can i check if my character is walking or running, and if stamina > X, get him running instead of walking
January 2, 201610 yr /** Here ya go **/ if (getSettings().getRunEnergy() > 30 && !getSettings().isRunning()) getSettings().setRunning(true);
January 2, 201610 yr if (!getScript().getSettings().isRunning() && getScript().getSettings().getRunEnergy() > 20){ if(getScript().getSettings().setRunning(true)) getScript().sleep(300); } Hope this helps -Ares
Create an account or sign in to comment