Sync leti

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: sync_leti register 1, xxxxxxxx

  • register1 = Register to use.
  • xxxxxxxx = Integer to copy to register 1

Use

Used to copy xxxxxxxx = Integer'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 registers see sync_let.)

(For versions other then dreamcast use sync_register.)

Example


100:     leti R1, 00000000 //R1=0
         sync_leti R1, 00000001 //Tells all clients that R1 now equals xxxxxxxx Integer value (R1=1)
         ret 

Also see

let, leti, sync_let, sync_register, ret