- Joined
- Oct 23, 2016
- Messages
- 85
(EDIT) I've found someone to help me, thank you!
Hello everyone!
I'm working on a relatively large project, and since I suck at triggers I'd like to request a trigger here.
What I need it to do:
Save a unit and its position, and respawn it after a set amount of time at a region I can specify for every unit, then make it walk towards its initial position.
What I mean by this, in more detail, along with some context:
I have Neutral Hostile units scattered all over the map from the beginning, let's say Unit A is on position A, Unit B in position B, etc.
When unit A dies, it respawns at a "respawn region" that I set in the world and starts walking towards Position A. Unit B also respawns in this respawn region, but walks to Position B.
Unit C however, might spawn from "respawn region 2". The point is that I need to be able to specify which unit respawns where myself, in the editor.
Saving the position and unit probably needs hashtables or something though. I have no idea about that
Which is why I'm here.
I have guard time set to basically infinite so no worries about units returning to the respawn location if their start position is too far.
EDIT: I forgot. Some of these respawn locations should be so that they can be turned off by another trigger.
The Idea is that some gnolls spawn from a gnoll hut and walk to their initial positions, until the gnoll hut is destroyed, for example.
Anyway, I'd really appreciate if someone helped me with this.
Cheers!
Last edited: