User Tools

Site Tools


ixe:irpl:vectors:tocell

ToCell

ToCell(<-cell) ->cellY ->cellX

Description

Extracts the x and y coordinates from a vector and rounds them to ints, pushing the two results to the stack. The inverse operation is FromCell

Examples

GetUnitPosition(self) toCell ->cellZ ->cellX
ixe/irpl/vectors/tocell.txt · Last modified: 2025/01/07 15:41 by 127.0.0.1