I have a trigger embedded into a complex process in the project I am working on and it is giving me a headache. After hours of grinding away at it, trying to determine what is causing the issue (and failing), and then trying to work around it to no avail, I think I may have encountered a glitch or bug.
First, here is the problem in question:
I have put green and red checks as sort of a visual aid to describing the problem. Basically when the condition of Current Team == 2 comes up, it executes all three actions perfectly. When the condition of Current Team == 3 comes up, it executes all three actions perfectly. But when the condition of Current Team == 1 comes up, it only executes the first two actions and ignores the third, even though the actions are identical between each else if.
Now, for some background information, the unit in question (who is supposed to have it's ownership changed to neutral) is present and correctly associated with the unit variable in all three instances. The current owner of that unit at the time of the action may be different, but that isn't checked anywhere in the conditions.
Has anyone encountered a problem like this? Why is it ignoring this action sometimes, and not others?
How could it be the array value failing? It's working fine in the other two identical instances. Same array value, same unit. Just a different team controlling it.
I have a trigger embedded into a complex process in the project I am working on and it is giving me a headache. After hours of grinding away at it, trying to determine what is causing the issue (and failing), and then trying to work around it to no avail, I think I may have encountered a glitch or bug.
First, here is the problem in question:
I have put green and red checks as sort of a visual aid to describing the problem. Basically when the condition of Current Team == 2 comes up, it executes all three actions perfectly. When the condition of Current Team == 3 comes up, it executes all three actions perfectly. But when the condition of Current Team == 1 comes up, it only executes the first two actions and ignores the third, even though the actions are identical between each else if.
Now, for some background information, the unit in question (who is supposed to have it's ownership changed to neutral) is present and correctly associated with the unit variable in all three instances. The current owner of that unit at the time of the action may be different, but that isn't checked anywhere in the conditions.
Has anyone encountered a problem like this? Why is it ignoring this action sometimes, and not others?
@rtschutter: Go
Is your array value that's failing...... "Capture Units[Active Point]"
hard to say much more with out more information.
How could it be the array value failing? It's working fine in the other two identical instances. Same array value, same unit. Just a different team controlling it.
Hmm... It all looks good. It must be something to do with the array. Could you post your map so I can have a better look at it?