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