Syntax
state.<name>Available in
- Runtime block bodies
- Shared helper functions
Native C++
Statically discovered state fields are stored as doubles initialized to zero and reset at task start. They cannot hold Lua tables or strings; use explicit numeric flags such as state.ready == 1.
Example
state.name