Difference between revisions of "PositionWorld"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Maturin
 
imported>QQuix
(Forgot to add internal links)
 
(9 intermediate revisions by 7 users not shown)
Line 2: Line 2:
  PositionWorld ''x, y, z, zRot, WorldID''  
  PositionWorld ''x, y, z, zRot, WorldID''  
  PosWorld ''x, y, z, zRot, WorldID''  
  PosWorld ''x, y, z, zRot, WorldID''  
Warps the object to the exterior coordinate location specified by x, y, and z in the specified worldspace. The object will be facing the world angle specified by zRot (measured in radians, not degrees). All parameters are floats.
'''Example:'''
'''Example:'''
  PositionWorld 76345, 100.56, 215, 176, Tamriel  
  PositionWorld 76345, 100.56, 215, 1, Tamriel  


Warps the object to the exterior coordinate location specified by x, y, and z in the specified worldspace. The object will be facing the world angle specified by zRot. All parameters are floats.  
===Notes===
*PositionWorld, [[PositionCell]] and [[MoveTo]] do exactly the same thing: they position a reference at a certain position on a given Worldspace/Cell (it has been said that, internally, they use the same code). The difference is that [[MoveTo]] retrieves the Worldspace/Cell and XYZ values from the referred object while [[PositionCell]] and PositionWorld get them from the parameters you provide.


Note: In almost every case, you would rather use [[MoveTo]] instead of this command.
*To convert to radians, multiply your regular Oblivion Z rotation by  0.01745.
== See Also ==
* [[PositionCell]]
* [[SetPos]]
* [[MoveTo]]


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

Latest revision as of 16:01, 14 October 2012

Syntax:

PositionWorld x, y, z, zRot, WorldID 
PosWorld x, y, z, zRot, WorldID 

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

Example:

PositionWorld 76345, 100.56, 215, 1, Tamriel 

Notes[edit | edit source]

  • PositionWorld, PositionCell and MoveTo do exactly the same thing: they position a reference at a certain position on a given Worldspace/Cell (it has been said that, internally, they use the same code). The difference is that MoveTo retrieves the Worldspace/Cell and XYZ values from the referred object while PositionCell and PositionWorld get them from the parameters you provide.
  • To convert to radians, multiply your regular Oblivion Z rotation by 0.01745.

See Also[edit | edit source]