P move V3

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: p_move_v3 register1

  • register1 = Player destination location x co cords.
  • register2 = Player destination location y co cords.
  • register3 = Player destination location z co cords.
  • register4 = Number of degrees to rotate the character.
  • register5 = Slot Number.

Use

Used to move the player to specified coordinates

Example

//This opcode is used to move the player to a specific place on the map.


100:     leti R1, 00000115 //X coordinate of where you want to move the player.
         leti R2, 00000020 //Y coordinate of where you want to move the player.
         leti R3, 0000004B //Z coordinate of where you want to move the player.
         leti R4, 0000001E //Degrees you want to rotate the player.
         leti R5, 00000000 //Slot Number (0-3)
         p_move_v3 R1 //Tells where to start the continuation of registry strings to be used for the player movement.
         ret 

Also see

leti, ret