The code works fine and the unit (could be a marine, marauder, etc...) is created and moved to the location. I added the if/then statement because I need to know if a Marine was created. The Player Unit variable is of Unit Type and as far as I understand, this should work. But of course it doesn't due to some logic that I am not understanding. The variable myintvariable never gets modified in the debug window. It is always equal to 0 after the Marine is created.
Yet another question from me, and this has to do with the last created unit. I have the following:
The code works fine and the unit (could be a marine, marauder, etc...) is created and moved to the location. I added the if/then statement because I need to know if a Marine was created. The Player Unit variable is of Unit Type and as far as I understand, this should work. But of course it doesn't due to some logic that I am not understanding. The variable myintvariable never gets modified in the debug window. It is always equal to 0 after the Marine is created.
What am I not getting?
Thanks again!!
You are using the Created Unit all over the trigger, except when setting the variable, where you use Last Created Unit instead.
@Kueken531: Go
Wow. How did I not see that! Thanks again!! :-)