HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Toss

03-08-2008, 02:18 PM#1
skorupamen
How to make toss skill? I just want to know how to change Z coordinate of unit.
03-08-2008, 02:39 PM#2
ADOLF
Collapse JASS:
native SetUnitFlyHeight takes unit whichUnit, real newHeight, real rate returns nothing

also it will depend on terrainû height, use

Collapse JASS:
globals
 location temporaryLocation=Location(0., 0.)
endglobals

function GetZ takes real x, real y returns real
 call MoveLocation(temporaryLocation, x, y)
 return GetLocationZ(temporaryLocation)
endfunction

...

 call SetUnitFlyHeight(Unit, z-GetZ(x, y), .0)

omg, has still overlooked - what to change height of flight not flying unit use

Collapse JASS:
function AddZ takes unit u returns nothing
 call UnitAddAbility(u, 'Arav')
 call UnitRemoveAbility(u, 'Arav')
endfunction
03-09-2008, 09:12 AM#3
Gorman
What is the ability name for Arav?
03-09-2008, 09:37 AM#4
Fledermaus
Storm Crow Form
03-09-2008, 11:14 AM#5
The Elite
dudes, read tutorials :), Changing Ground Unit Flying Height
Toss - Wc3C.net