Cuberite Forum
Entity destroy - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Entity destroy (/thread-1184.html)



Entity destroy - fankins - 07-14-2013

How to Remove Entities with a specific ID. I found how to delete all Entities, and how to remove certain entities do not know. How?


RE: Entity destroy - tonibm19 - 07-14-2013

what do you mean with certain entities? Kill all spiders, for example?


RE: Entity destroy - fankins - 07-14-2013

kill some spiders, such as. To kill a spider with id 25


RE: Entity destroy - tonibm19 - 07-14-2013

(07-14-2013, 05:22 AM)fankins Wrote: kill some spiders, such as. To kill a spider with id 25
Every mob has a unique id, there aren't 2 mobs with the same id, I think you only can kill mobs depending on type


RE: Entity destroy - xoft - 07-14-2013

Get a cEntity object (via cWorld:DoWithEntity() ), then call its Destroy method.