Ok so that all works, but stil working with the bomb, and I want to trigger client now because the this.level.whatever doesn't seem to work serverside. Also it would require every player to use a bomb here.
PHP Code:
function onExplode() {
if (!this.exploded) {
this.image = "door.png";
this.exploded = true;
setTimer(3);
triggerClient("boom");
}
}
//#CLIENTSIDE
function onActionClientSide(cmd) {
if (cmd == "boom") {
echo("working");
this.level.j.wasExploded();
}
}