mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
skeletons are peaceful and will not attack player, entity will seaatch 16 block radius to find attackable player
This commit is contained in:
parent
ed30995f9d
commit
395e35ad5d
4 changed files with 17 additions and 4 deletions
|
|
@ -32,6 +32,15 @@ class EntityAI
|
|||
console("[DEBUG] Adding new task...",true, true, 2);
|
||||
$this->tasks[$task->__toString()] = $task;
|
||||
}
|
||||
|
||||
public function removeTask($name){
|
||||
if(isset($this->tasks[$name])){
|
||||
unset($this->tasks[$name]);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param mixed $id classname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue