View Single Post
  #2  
Old 05-19-2007, 02:14 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
You have to put the if inside the function:

PHP Code:
function onTimeout(){
onPlayerEnters();
}

function 
onPlayerChats() {
if (
player.chat == "foo") { 
//do whatever
}



edit: Using the newly implemented function pointers it may be possible to override the events, no idea if this is possible though, you'd be better off sticking with the above example.
PHP Code:
this.onPlayerEnters this.onTimeout
__________________

Coming soon (Hopefully:P)
Reply With Quote