View Single Post
  #5  
Old 05-19-2007, 03:06 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Quote:
Originally Posted by oinknessx View Post
Well that sort of makes sense. But Rapidwolve, after you have the function of pie(); being called to start, how do you say what the pie action actually is? Do you put it like,

function pie(){
//stuff
}

Is that right?
Yes.

Quote:
Originally Posted by oinknessx View Post
So to make a timeout, you would put

function onTimeout(){
onPlayerEnters();
}
Not neccesarily, that would just keep calling onPlayerEnters() every 'n' seconds (depending on the timer, set using setTimer(float)). Something to emulate that is:
PHP Code:
function onPlayerEnters()
{
  if (
this.timeout)
  {
        
//
  
}

Reply With Quote