Any ideas what function/s I can use to test if an entity is still in world? I want my script to recognise when an entity has died.
Thanks
There will be a hook and a method for this added in 1.4.6. In the meantime, you can take advantage of the fact that all methods return 0 when passed in an invalid/removed entity.
There will be a hook and a method for this added in 1.4.6. In the meantime, you can take advantage of the fact that all methods return 0 when passed in an invalid/removed entity.
Once again your advice worked a treat. Entity.getEntityTypeId(ent); did the job. You're the boss. Thanks.
ModPE.setFoodItem(id,iconx,icony,halfhealth,desc)
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThanks
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThere will be a hook and a method for this added in 1.4.6. In the meantime, you can take advantage of the fact that all methods return 0 when passed in an invalid/removed entity.
Click Banner to SUBSCRIBE!!! I'm in the Team Flame Clan!!! Click that little green arrow!! -------------->
Click Banner to SUBSCRIBE!!! I'm in the Team Flame Clan!!! Click that little green arrow!! -------------->
Click Banner to SUBSCRIBE!!! I'm in the Team Flame Clan!!! Click that little green arrow!! -------------->
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumhttps://github.com/Connor4898/ModPE-Scripts/wiki/ModPE-Scripts-Functions-List
I find Connors Function List Pretty helpful though, explains the functions as well as gives you a list of them.
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThen EDIT THE CONDEMNED WIKI. It's a Wiki; I've even fixed/added things on that page once. It would be awesome if you can help maintain that page.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium1) Create a GitHub account: https://github.com/
2) Log in with the GitHub account
3) Go to that list again, and hit "Edit Page"
It's awesome that you are trying to help others. Good luck!