P setpos

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: p_setpos xxxxxxxx, Register 1

  • register1 = Position x.
  • register2 = Position y.
  • register3 = Position z.
  • register4 = Rotation.
  • xxxxxxxx (DWORD1) = Player slot to use.

Use

Used to set the player(s) position.

Example 1 - EP1 & EP4 pioneer 2 guild quest giver starting position.


100:     leti R1, 000000ED //Position x red gem player.
         leti R2, 00000000 //Position y red gem player.
         leti R3, 0000014D //Position z red gem player.
         leti R4, FFFFFFF1 //Rotation red gem player.
         p_setpos 00000000, R1 //Tells where to start the continuation of registry strings to be used for the position of the red gem player.
         leti R1, 000000FF //Position x green gem player.
         leti R2, 00000000 //Position y green gem player.
         leti R3, 00000152 //Position z green gem player.
         leti R4, FFFFFFD5 //Rotation green gem player.
         p_setpos 00000001, R1 //Tells where to start the continuation of registry strings to be used for the position of the green gem player.
         leti R1, 000000DE //Position x yellow gem player.
         leti R2, 00000000 //Position y yellow gem player.
         leti R3, 00000142 //Position z yellow gem player.
         leti R4, 00000019 //Rotation y yellow gem player.
         p_setpos 00000002, R1 //Tells where to start the continuation of registry strings to be used for the position of the yellow gem player.
         leti R1, 000000F8 //Position x blue gem player.
         leti R2, 00000000 //Position y blue gem player.
         leti R3, 00000143 //Position z blue gem player.
         leti R4, FFFFFFEC //Rotation blue gem player.
         p_setpos 00000003, R1 //Tells where to start the continuation of registry strings to be used for the position of the blue gem player.
         ret 


Example 2 - EP2 Lab quest giver starting position.


100:     leti R1, FFFFD8E7 //Position x red gem player.
         leti R2, 0000001E //Position y red gem player.
         leti R3, FFFFFF4C //Position z red gem player.
         leti R4, 000000B4 //Rotation red gem player.
         p_setpos 00000000, R1 //Tells where to start the continuation of registry strings to be used for the position of the red gem player.
         leti R1, FFFFD8F6 //Position x green gem player.
         leti R2, 0000001E //Position y green gem player.
         leti R3, FFFFFF4C //Position z green gem player.
         leti R4, 000000B4 //Rotation green gem player.
         p_setpos 00000001, R1 //Tells where to start the continuation of registry strings to be used for the position of the green gem player.
         leti R1, FFFFD8DC //Position x yellow gem player.
         leti R2, 0000001E //Position y yellow gem player.
         leti R3, FFFFFF45 //Position z yellow gem player.
         leti R4, 000000B4 //Rotation y yellow gem player.
         p_setpos 00000002, R1 //Tells where to start the continuation of registry strings to be used for the position of the yellow gem player.
         leti R1, FFFFD901 //Position x blue gem player.
         leti R2, 0000001E //Position y blue gem player.
         leti R3, FFFFFF45 //Position z blue gem player.
         leti R4, 000000B4 //Rotation blue gem player.
         p_setpos 00000003, R1 //Tells where to start the continuation of registry strings to be used for the position of the blue gem player.
         ret 

Also see

leti, ret