public function initEntity() { $this->setMaxHealth(1); $this->setHealth($this->getMaxHealth()); $this->moveVector[Entity::NORTH] = new Vector3(-1, 0, 0); $this->moveVector[Entity::SOUTH] = new Vector3(1, 0, 0); $this->moveVector[Entity::EAST] = new Vector3(0, 0, -1); $this->moveVector[Entity::WEST] = new Vector3(0, 0, 1); parent::initEntity(); }
public function initEntity() { $this->setMaxHealth(4); parent::initEntity(); }
public function initEntity() { $this->setMaxHealth(1); $this->setHealth($this->getMaxHealth()); parent::initEntity(); }