I have a trigger that was working before. Though, before what exactly, I'm not quite sure.
How it worked before / was supposed to work:
A unit dies - an item spawns at its location.
How it works now:
A unit dies - the correct item spawns at Start location 001.
Event:
Unit - Any Unit dies
Condition:
(Owner of (Triggering unit)) == 13
Actions:
Unit - Create 1 Gas Pod - Zerg (Item) for player 0 at (Position of (Triggering unit)) using default facing (No Options)
It's definitely in one of the functions I disabled.
I have two other functions with Events like that.
Each function works off a global variable.
I have a global Variable for Hero 1, and a global variable for Hero 2.
Each function says:
Unit - <Variable> dies
I disabled them since I haven't really worked on implementing resurrection anyway, but I still don't see how they could interfere if they specifically target units that would get filtered out at condition point.
BTW, this function is duplicated for protoss and Zerg, so that Zerg drop gas and Toss drop minerals, and it works fine with both functions enabled.
Is there a way to change the "Any Unit" in the event to "Any unit in Unit Group"? (instead of a specific unit in unit group?)
thats your porblem right there
events can not be dynamic. aka you can not use anything that can "change" in an event.
So you need to make unit- any unit dies
THEN in the condition, then check if its your global var hero.... haven a dynamic event will cuase the triggers to act up, and run even when you think it should be true.
I have a trigger that was working before. Though, before what exactly, I'm not quite sure.
How it worked before / was supposed to work: A unit dies - an item spawns at its location.
How it works now: A unit dies - the correct item spawns at Start location 001.
Event: Unit - Any Unit dies Condition: (Owner of (Triggering unit)) == 13 Actions: Unit - Create 1 Gas Pod - Zerg (Item) for player 0 at (Position of (Triggering unit)) using default facing (No Options)
that code s 100% right...something else must be going on.
That trigger should work perfectly fine. Do you have any other triggers that fire when a unit dies? If so please post them.
@ZeroAme: Go
It's definitely in one of the functions I disabled. I have two other functions with Events like that. Each function works off a global variable.
I have a global Variable for Hero 1, and a global variable for Hero 2. Each function says: Unit - <Variable> dies
I disabled them since I haven't really worked on implementing resurrection anyway, but I still don't see how they could interfere if they specifically target units that would get filtered out at condition point. BTW, this function is duplicated for protoss and Zerg, so that Zerg drop gas and Toss drop minerals, and it works fine with both functions enabled. Is there a way to change the "Any Unit" in the event to "Any unit in Unit Group"? (instead of a specific unit in unit group?)
@SycoPrime: Go
thats your porblem right there
events can not be dynamic. aka you can not use anything that can "change" in an event.
So you need to make unit- any unit dies
THEN in the condition, then check if its your global var hero.... haven a dynamic event will cuase the triggers to act up, and run even when you think it should be true.
@Molsterr: Go Thank you, I'll give that a shot and see what happens!