This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I want to call upon a unit type in an if statement but can not figure out how. An example is,
Event-> Unit dies. Action-> If killing unit == marine then...
The problem is, I can only select unit that exist on the terrain. I cannot select a marine that has not been created.
@BasicGear: Go
very easy, search for "unit type of unit" and it should be there.
Search for Triggering Unit in functions.
Your if statement must look like this
if Unit Type of (Triggering Unit) == Marine then ...
This will return true if the unit that died is a marine.
I want to call upon a unit type in an if statement but can not figure out how. An example is,
Event-> Unit dies. Action-> If killing unit == marine then...
The problem is, I can only select unit that exist on the terrain. I cannot select a marine that has not been created.
@BasicGear: Go
very easy, search for "unit type of unit" and it should be there.
@BasicGear: Go
Search for Triggering Unit in functions.
Your if statement must look like this
if Unit Type of (Triggering Unit) == Marine then ...
This will return true if the unit that died is a marine.