Talk:GetPositionY - ObjectReference
Revision as of 05:36, 27 October 2017 by imported>Lisselli (Added function for converting y position to the y coordinate the exterior cell is assigned to.)
GetCoordinateY
Float Function GetCoordinateY(ObjectReference akRef)
; Converts the objects y position to the Y coordinate of the cell.
return Math.Floor(akRef.GetPositionY() / 4096.0)
EndFunction
Use this to get the exact Y coordinate for the cell. Use only for exterior cells. Lisselli (talk) 2017-10-27T06:36:14 (EDT)