Get coord player detect

From Unofficial QEdit Wiki Guide
Revision as of 02:44, 19 April 2021 by Kayak (Talk | contribs)

Jump to: navigation, search

Syntax

Syntax: particle_v3 register1, register5

  • register1 = X value.
  • register2 = Z value.
  • register3 = Radius.
  • register4 = Player slot.
  • register5 = Output.

Use

Script version of a touch plate object; used to detect a player's location within specific set parameters.

Example

//Detecting the player within the given parameters.

0:   get_slotnumber R250 //Gets the player's slot # and puts it in R250.
100:     leti R1, 0000000A //Set the X value to 10.
         leti R2, 00000000 //Set Z value to 0
         leti R3, 00000064 //Set the radius to 100
         let  R4, R250 //Set the player slot to R250
         leti R5, 00000000 //Output if the player is standing within the radius set in R3
         particle_v3 R1 //Tells where to start the continuation of registry strings to be used for the coordinates
         ret 

Also see

leti let get_slotnumber ret