The search keyword must be a single word (no spaces).
Function GetUnitY
- Line
- 2987
- Location
- common.j
- Constant?
- yes
- Type
- native
- Arguments
- unit whichUnit
- Returns
- real
| 2987 | constant native GetUnitY takes unit whichUnit returns real |
| 2988 | constant native GetUnitLoc takes unit whichUnit returns location |
| 2989 | constant native GetUnitFacing takes unit whichUnit returns real |
| 2990 | constant native GetUnitMoveSpeed takes unit whichUnit returns real |
| 2991 | constant native GetUnitDefaultMoveSpeed takes unit whichUnit returns real |
| 2992 | constant native GetUnitState takes unit whichUnit, unitstate whichUnitState returns real |
Information about GetUnitY
City17
4 years
returns Y map coordinate of whichUnit (alive or dead). Returns 0.0 if unit was removed or is null.
Since unit extends from [jassdoc]widget[/jassdoc], you can use widget-related functions too.
See: [jassdoc]GetUnitX[/jassdoc], [jassdoc]BlzGetLocalUnitZ[/jassdoc], [jassdoc]BlzGetUnitZ[/jassdoc],[jassdoc]GetWidgetX[/jassdoc], [jassdoc]GetWidgetY[/jassdoc]
Quote from: Lep's JassdocBug: If the unit is loaded into a zeppelin this will not return the position of the zeppelin but the last position of the unit before it was loaded into the zeppelin.
Since unit extends from [jassdoc]widget[/jassdoc], you can use widget-related functions too.
See: [jassdoc]GetUnitX[/jassdoc], [jassdoc]BlzGetLocalUnitZ[/jassdoc], [jassdoc]BlzGetUnitZ[/jassdoc],[jassdoc]GetWidgetX[/jassdoc], [jassdoc]GetWidgetY[/jassdoc]
You must be logged in with a standard account to contribute.