Sync let

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: sync_let register 1, register 2

  • register1 = Register to use.
  • register2 = Register to copy to register 1.

Use

Used to copy registers 2's value to register 1.

Then synchronize the value of register 1 to all clients.


(To synchronize a register's value between all clients using Integers see sync_leti.)

(For versions other then dreamcast use sync_register.)

Example


100:     leti R1, 00000000 //R1=0
         leti R2, 00000001 //R2=1
         sync_let R1, R2 //Tells all clients that R1 now equals register R2's value (R1=1)
         ret 

Also see

let, leti, sync_leti, sync_register, ret