Difference between revisions of "P move V3"
From Unofficial QEdit Wiki Guide
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>p_move_v3</span> register1</span> * ''register1 = Player destination locatio...") |
(→Example) |
||
Line 20: | Line 20: | ||
<span style='color:green'> leti </span>R4, 0000001E <span style='color:orange'>//Degrees you want to rotate the player.</span> | <span style='color:green'> leti </span>R4, 0000001E <span style='color:orange'>//Degrees you want to rotate the player.</span> | ||
<span style='color:green'> leti </span>R5, 00000000 <span style='color:orange'>//Slot Number (0-3)</span> | <span style='color:green'> leti </span>R5, 00000000 <span style='color:orange'>//Slot Number (0-3)</span> | ||
− | <span style='color:green'> | + | <span style='color:green'> cam_move_v3 R1 </span><span style='color:orange'>//Tells where to start the continuation of registry strings to be used for the player movement.</span> |
<span style='color:green'> ret </span> | <span style='color:green'> ret </span> | ||
==Also see== | ==Also see== | ||
[[leti]], [[ret]] | [[leti]], [[ret]] |
Revision as of 05:12, 1 December 2020
Contents
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)
cam_move_v3 R1 //Tells where to start the continuation of registry strings to be used for the player movement.
ret