diff --git a/src/entity/object/Camera.php b/src/entity/object/Camera.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/object/Painting.php b/src/entity/object/Painting.php index 6ad633cc..78dc08ed 100644 --- a/src/entity/object/Painting.php +++ b/src/entity/object/Painting.php @@ -17,6 +17,7 @@ class Painting extends Hanging{ [PAINTING, 0, 1] ]; } + public function spawn($player){ $pk = new AddPaintingPacket; $pk->eid = $this->eid; diff --git a/src/entity/object/TripodCamera.php b/src/entity/object/TripodCamera.php new file mode 100644 index 00000000..d5752f7d --- /dev/null +++ b/src/entity/object/TripodCamera.php @@ -0,0 +1,18 @@ +setHealth(PHP_INT_MAX, "generic"); + } + + public function interactWith(Entity $e, $action){ + if($e->isPlayer() and $action === InteractPacket::ACTION_HOLD){ + //todo + $this->server->schedule(40, [$this, "close"]); + } + parent::interactWith($e, $action); + } +} \ No newline at end of file