Instead of killing entities right away we could mark them with a tag mcfd_killed. All selectors need to ignore killed entities. Right after marking the entities and whenever returning from a function we can kill all marked entities that are not referenced by a mdfd_context entity.
The necromancy example from our readme is a good reproducer test case.
Instead of killing entities right away we could mark them with a tag
mcfd_killed. All selectors need to ignore killed entities. Right after marking the entities and whenever returning from a function we can kill all marked entities that are not referenced by amdfd_contextentity.The necromancy example from our readme is a good reproducer test case.