just need one time if you do it in one function
also it just make 1, not 1/0 or 1/1
1 mean is true, 0 mean is false or can't fly
function procCmd(cmd) {
cmd = cmd.toLowerCase();
if(cmd == "fly") {
Player.setCanFly(1);
}
if(cmd == "stop") {
Player.setCanFly(0);
}
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Why wont this mod work. It only works if I dont have the second part
also it just make 1, not 1/0 or 1/1
1 mean is true, 0 mean is false or can't fly
function procCmd(cmd) {
cmd = cmd.toLowerCase();
if(cmd == "fly") {
Player.setCanFly(1);
}
if(cmd == "stop") {
Player.setCanFly(0);
}