- Joined
- Sep 14, 2009
- Messages
- 284
I'm making a custom damage detection system in a map I'm working on.
The map uses a custom combat system where a group of player units enter an arena-like battlefield when fighting enemies, I call it instanced combat.
Anyway, so I'm adding event every time a new battle takes place for all enemy units created.
Sooner or later this would cuase over 1000 events (single-player map).
I have read there is a way to destroy trigger and then create it again to remove all added events.
I know how to destroy a trigger, but not recreate it.
My question is; What is the custom script for recreating a trigger, and, will recreating a trigger remove events/conditions/actions that was originally in the trigger (not added ingame)?
The map uses a custom combat system where a group of player units enter an arena-like battlefield when fighting enemies, I call it instanced combat.
Anyway, so I'm adding event every time a new battle takes place for all enemy units created.
Sooner or later this would cuase over 1000 events (single-player map).
I have read there is a way to destroy trigger and then create it again to remove all added events.
I know how to destroy a trigger, but not recreate it.
My question is; What is the custom script for recreating a trigger, and, will recreating a trigger remove events/conditions/actions that was originally in the trigger (not added ingame)?