Quote:
Originally Posted by oinknessx
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
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)
{
//
}
}