SplitScript reference / Language / current

current

contextual value

current.stateField

Accesses the current committed state snapshot.

State fields refresh before whileAttached and timer-decision actions run. Direct assignment replaces a field for the remainder of this tick and the resulting snapshot becomes old on the next successful poll. A failed field retains its last accepted value.

Examples

Use current

current.level = 1