Talk:GetPositionX - ObjectReference
Revision as of 08:09, 11 October 2017 by imported>Lisselli
Getting Cell Coordinates
Ever wondered how you can use the Cell View window's coordinates in game? Simple. You take the two values and you multiply them by 4096. If you want to convert an object's in game coordinates to use in the Cell View window, you divide the X and Y values by 4096 and cast as int to remove the decimals. Lisselli (talk)Lisselli (talk) 2017-10-06T11:57:52 (EDT)
- When going past the origin cell(0,0), negative coordinates in the editor do not match the coordinates given by objects X and Y values. (-11, -2, is -10, -1). Example: X: -44675.6289 and Y: -5729.0830 for this object, when converted into coordinates(X / 4096, and Y/4096), are 10.9 and 1.3, even though the object is located in cell -11,-2 in the editor. This may be just a mishap the Cell View window when the coordinates were codded in. When on the positive side of the game's coordinate plane, the X and Y conversions(positive Y) match their respect coordinates seen in the editor. Lisselli (talk) 2017-10-11T09:06:01 (EDT)