Quote:
Originally Posted by Stefan
Stuff like
PHP Code:
clientr.("chestopened_" @ level.name) = true;
would be best, because such arrays can become quite huge and each modification of a client/clientr variable needs to be sent to the client.
|




PHP Code:
function onPlayerTouchsMe()
{
if ( ! clientr.( @ "chestsOpened_" @ this.level.name @ "_" @ this.x @ "_" @ this.y ) )
{
clientr.( @ "chestsOpened_" @ this.level.name @ "_" @ this.x @ "_" @ this.y ) = true;
// Stuff to do e.g. add a weapon
}
}