PDA

View Full Version : How best to trap event if an NR client closes?



marketability
June 10th, 2009, 01:50 PM
I need girder to trigger an event if it detects that a client has closed.

Rather than looping the checking of connected clients is there a better way?

Thanks

Rob H
June 10th, 2009, 07:09 PM
You can use NetRemote.RegisterDisconnectCallback to add a function that will track a client disconnecting. This is documented in the Girder help file under Lua Library Reference\NetRemote Library at the bottom of the page.

marketability
June 11th, 2009, 01:55 AM
thanks - i'll give it a go