Difference between revisions of "Sync leti"
From Unofficial QEdit Wiki Guide
Japanaman2 (Talk | contribs) |
Japanaman2 (Talk | contribs) |
||
Line 9: | Line 9: | ||
==Use== | ==Use== | ||
Used to copy xxxxxxxx = Integer's value to register 1. | Used to copy xxxxxxxx = Integer's value to register 1. | ||
+ | |||
Then synchronize the value of register 1 to all clients. | Then synchronize the value of register 1 to all clients. | ||
+ | |||
(To synchronize a register's value between all clients using registers see [[sync_let]].) | (To synchronize a register's value between all clients using registers see [[sync_let]].) | ||
+ | |||
+ | (For versions other then dreamcast use [[sync_register]].) | ||
==Example== | ==Example== |
Revision as of 23:26, 17 February 2013
Contents
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