| 06-10-2005, 04:56 AM | #1 |
How would this look in JASS? I tried converting a trigger that does this in GUI and pasting the stuff into the part where I need it, but it didn't work, gave me error. So...How would one write get unit-type of unit in region, in JASS? |
| 06-10-2005, 05:23 AM | #2 |
Well, I found a way to do it, prolly some easy, one line way, but this works... Code:
local unit tempUnit set tempUnit = GroupPickRandomUnit(tempGroup) call CreateNUnitsAtLoc( 1, GetUnitTypeId(tempUnit), Player(0), tempLoc, bj_UNIT_FACING ) |
| 06-10-2005, 08:51 AM | #3 |
What, this didn't work? Code:
call CreateNUnitsAtLoc( 1, GetUnitTypeId( GroupPickRandomUnit(tempGroup) ), Player(0), tempLoc, bj_UNIT_FACING ) |
| 06-10-2005, 05:14 PM | #4 |
well I figured it was always better to set it to a varible, and then set it to null because it works better or somthing, but Im probally getting it confused with somthing else lol |
