Difference between revisions of "Talk:GetPositionY - ObjectReference"
Talk:GetPositionY - ObjectReference (edit)
Revision as of 11:27, 27 October 2017
, 11:27, 27 October 2017→GetCoordinateY: Changed Function type Float to Int, since the return values are all floats cast to int.
imported>Lisselli m (→GetCoordinateY: Fixed code to account for negative values.) |
imported>Lisselli m (→GetCoordinateY: Changed Function type Float to Int, since the return values are all floats cast to int.) |
||
Line 1: | Line 1: | ||
== GetCoordinateY == | == GetCoordinateY == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Int Function GetCoordinateY(ObjectReference akRef) | |||
; Converts the objects' Y position to the Y coordinate of the cell. | ; Converts the objects' Y position to the Y coordinate of the cell. | ||
Float GetPosY = akRef.GetPositionY() / 4096.0 | Float GetPosY = akRef.GetPositionY() / 4096.0 |