This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "PositionRelativeXYZ"

Jump to navigation Jump to search
429 bytes added ,  07:52, 14 January 2010
Clarifying the meaning of the arguments
imported>QQuix
(A user function to position an object relative to another object)
 
imported>QQuix
(Clarifying the meaning of the arguments)
 
Line 6: Line 6:


Positions an object relative to another object.  
Positions an object relative to another object.  
E.g.: positioning a parrot at the a pirate's shouder .  
E.g.: positioning a parrot on a pirate's shoulder .
 
 
DeltaX, DeltaY and DeltaZ are distances from the anchor objects when it is facing north (Angle Z = 0)
 
DeltaAngZ is used to rotate the positioned object relative to the anchor's Z angle.
 
Using the parrot on the shoulder example:
 
DeltaX = 15  -  a little to the right of the player
 
DeltaY  = 0  -  not ahead, not behind
 
DeltaZ = 100  -  distance from feet to shoulder
 
DeltaAngZ = 270  -  the parrot faces the player's head




Anonymous user

Navigation menu