Code: [Select]function One(%client)} schedule($Pref::Mod::Time, 0, One, %client);}So would this be correct?
function One(%client)} schedule($Pref::Mod::Time, 0, One, %client);}
to check a players energy would I use a variable with the name of energy?
%obj.getEnergyLevel();
Thats getting their energy, I need it to do something if their energy is at 100.
I need it to do something if their energy is at 100.
function One(%client){ if(%client.player.getEnergyLevel() == 100) schedule($Pref::Mod::Delay, 0, "One", %client);}
Code: [Select]function One(%client){ if(%client.player.getEnergyLevel() == 100) schedule($Pref::Mod::Delay, 0, "One", %client);}You mean like that?
function One(%client){ if(%client.player.getEnergyLevel() == 100) { schedule($Pref::Mod::Delay, 0, "One", %client); }}
Would not it need to be like this?Code: [Select]function One(%client){ if(%client.player.getEnergyLevel() == 100) { schedule($Pref::Mod::Delay, 0, "One", %client); }}
That way is preferred, but both will work.