Quote:
Originally Posted by DustyPorViva
That script would only work if there was a one chest limit per level. It needs to have coordinates as well.
|


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