Blockland Forums > Modification Help

Calling A Function In A Function

Pages: << < (4/5) > >>

infiniteLoop:


--- Quote from: jes00 on October 12, 2011, 07:04:05 AM ---
--- Code: ---function One(%client)
}
   schedule($Pref::Mod::Time, 0, One, %client);
}

--- End code ---
So would this be correct?

--- End quote ---


function One(%client)
{
   cancel($one::loop);

   echo("-- OMG THIS WORKS --");

   $one::loop = schedule($Pref::Mod::Time, 0, One, %client);
}

jes00:

to check a players energy would I use a variable with the name of energy?

Amade:


--- Quote from: jes00 on October 12, 2011, 10:47:44 AM ---to check a players energy would I use a variable with the name of energy?
--- End quote ---
%obj.getEnergyLevel();

jes00:


--- Quote from: Amade on October 12, 2011, 06:23:23 PM ---%obj.getEnergyLevel();

--- End quote ---
Thats getting their energy, I need it to do something if their energy is at 100.

Amade:


--- Quote from: jes00 on October 12, 2011, 07:37:19 PM ---Thats getting their energy, I need it to do something if their energy is at 100.

--- End quote ---
if(%obj.getEnergyLevel() >= 100)

Pages: << < (4/5) > >>

Go to full version