Difference between revisions of "Run to coord"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>run_to_coord</span> register1</span> * ''register1 = Player destination loca...")
 
(Also see)
Line 21: Line 21:
  
 
==Also see==
 
==Also see==
[[leti]], [[ret]], [[get_slotnumber]], [[Reserved Registers]]
+
[[leti]], [[ret]], [[get_slotnumber]], [[reservedregisters]]

Revision as of 04:59, 25 November 2020

Syntax

Syntax: run_to_coord register1

  • register1 = Player destination location x co cords.
  • register2 = Player destination location y co cords.
  • register3 = Player destination location z co cords.

Use

Used to make a player run to a specific destination.

Example

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


0:     get_slotnumber R250 //Puts the player's slot number into Register 250
100:     leti R1, 00000115 //X coordinate of the destination of where you want the player to run.
         leti R2, 00000020 //Y coordinate of the destination of where you want the player to run.
         leti R3, 0000004B //Z coordinate of the destination of where you want the player to run.
         run_to_coord R1 //Tells where to start the continuation of registry strings to be used for the player movement.
         ret 

Also see

leti, ret, get_slotnumber, reservedregisters