Difference between revisions of "PositionCell"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(CS 1.0)
imported>QQuix
(Added a note about use of radians)
 
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
'''Syntax:'''
'''Syntax:'''
  PositionCell'' x,y,z, zRot, CellID''
  ''[reference.]''PositionCell'' x,y,z, zRot, CellID''
  poscell '' x,y,z, zRot, CellID''
  ''[reference.]''poscell '' x,y,z, zRot, CellID''
'''Example:'''
PositionCell 76345, 100.56, 215, 176, ScaryCavern


Warps the object to the interior cell coordinate location specified by x, y, and z. The object will be facing the world angle specified by zRot (measured in radians, not degrees). All parameters are floats.


Warps the object to the interior cell coordinate location specified by x, y, and z. The object will be facing the world angle specified by zRot. All parameters are floats.  
'''Example:'''
PositionCell 76345, 100.56, 215, 1.745, ScaryCavern


Note: In almost every case, you would rather use [[MoveTo]] instead of this command.  
==Notes==
*[[MoveTo]] and '''PositionCell''' perform the same function, but use different parameters ('''PositionCell''' uses coordinates while [[MoveTo]] uses a reference).
*To convert to radians, multiply your regular Oblivion Z rotation by 0.01745.
*When called on a reference already within the destination cell, the reference remains in its original location.


== See Also ==
== See Also ==
* [[PositionWorld]]
* [[SetPos]]
* [[SetPos]]
* [[MoveTo]]
* [[MoveTo]]


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Functions (CS 1.0)]]
[[Category: Movement Functions]]
[[Category: Movement Functions]]
[[Category: Movement Functions (CS 1.0)]]
[[Category: Movement Functions (CS 1.0)]]
<!-- Begin Search Terms
Position
Cell
End Search Terms -->

Latest revision as of 16:15, 14 October 2012

Syntax:

[reference.]PositionCell x,y,z, zRot, CellID
[reference.]poscell  x,y,z, zRot, CellID

Warps the object to the interior cell coordinate location specified by x, y, and z. The object will be facing the world angle specified by zRot (measured in radians, not degrees). All parameters are floats.

Example:

PositionCell 76345, 100.56, 215, 1.745, ScaryCavern 

Notes[edit | edit source]

  • MoveTo and PositionCell perform the same function, but use different parameters (PositionCell uses coordinates while MoveTo uses a reference).
  • To convert to radians, multiply your regular Oblivion Z rotation by 0.01745.
  • When called on a reference already within the destination cell, the reference remains in its original location.

See Also[edit | edit source]