Instructions/Separate Register

From Desynced Wiki
Revision as of 00:32, 23 October 2023 by Johan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Separate Register
     
     Split a register into separate parameters
Lua ID separate_register
Category Math
Icon Compare Values.png
Argument One: Type Input
Argument One: Name Register
Argument One: Data Type entity
Argument Two: Type Output
Argument Two: Name Num
Argument Three: Type Output
Argument Three: Name Unit
Argument Four: Type Output
Argument Four: Name ID
Argument Five: Type Output
Argument Five: Name x
Argument Six: Type Output
Argument Six: Name y



Description[edit | edit source]

Split a register into separate parameters

Uses[edit | edit source]

When performing math instructions on a register containing both a coordinate and a number, it is highly recommended to split the register down into parts using this instruction.

Similar Instructions[edit | edit source]

Combine Register, Combine Coordinate, Separate Coordinate, Set Number