How to clear an entity without killing it?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

piter909

Member
Jan 30, 2017
10
1
0
How to clear an entity without killing it?
I have added all entities to list {mobs::*}, and when I am looping it, "clear loop-value" does not work :emoji_frowning:
Can someone help me?
Thanks.
 
It also does not work. It says "nothing can not be added/removed to/from loop-value"
 
code_language.skript:
delete all entities in radius 0.1 of loop-value
 
I think, doing complicated things like this for 1000 entities is really bad.
There is no normal way to call LivingEntity.clear(); in this situation ?
 
I think, doing complicated things like this for 1000 entities is really bad.
There is no normal way to call LivingEntity.clear(); in this situation ?
Well, if you're using Skript-Mirror:
code_language.skript:
loop-value.remove();
 
It is "delete %entity%".
Try to parse the loop-value as entity like that:
Code:
delete loop-value parsed as entity
 
Status
Not open for further replies.