Separate names with a comma.
Comments in 'Plugin Development' started by MyNameIsTriXz, Jun 4, 2016.
Why does PocketMine have no way to get an entity?
get... not create
What do you mean? getEntity()?
yeah, I debug to get its id, but cant get it by its id
You can get an entity by its I'd:
ik, but it doesnt work...
It does work, take a look here: https://github.com/HotshotHD/Pocket...cketmorph/morph/manager/MorphManager.php#L120.
You are probably saving the wrong entity id.
Can you show your code where you save the Id, and where you try to get the entity?
It works now, but it was very confusing because it didnt work at my first tries
Side note: more than one entity can have same eid.