This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hello, I was wondering if there was a way to have an if/then that checks if a unit can attack air or not? Thanks.
You could add a dummy behavior to all units that can attack air, and then check for the behavior.
@o3210: Go
thanks, i just figured out another way:
if ((picked unit) weapon 1 can target Air == Enabled
Of course, if they have multiple weapons then it gets a little trickier but that can be handled on a case by case basis I guess
You should be able to check for the number of weapons available and loop them.
@Kueken531: Go
oh yeh, thanks a lot
Hello, I was wondering if there was a way to have an if/then that checks if a unit can attack air or not? Thanks.
You could add a dummy behavior to all units that can attack air, and then check for the behavior.
@o3210: Go
thanks, i just figured out another way:
if ((picked unit) weapon 1 can target Air == Enabled
Of course, if they have multiple weapons then it gets a little trickier but that can be handled on a case by case basis I guess
You should be able to check for the number of weapons available and loop them.
@Kueken531: Go
oh yeh, thanks a lot