Skip to content
Loading local search…

Try a task like “spawn a ship” or “read inventory”, or an exact API name.

Choose one category, or search all.

sc_actor_stats_write_v1.mode

*out_mode = an sc_actor_stat_write_mode: AUTHORITATIVE (your entity has authority), LOCAL_ONLY (no authority, but the stat allows a local change that an authority may overwrite) or DISCARDED (the game would ignore a change). Writes nothing; needs no offline admission.

sco_result (*)(sco_plugin *, uint64_t, uint32_t, uint32_t *)

Service index

Property Value
Symbol sc_actor_stats_write_v1.mode
Record ID sc-actor-stats-write-v1-mode
Service game.actor_stats_write
Table sc_actor_stats_write_v1
Version macro SC_ACTOR_STATS_WRITE_VERSION_1_0
Packed table version 65536
Since / availability size >= 32; 1.0
Complete member extent (x64 bytes) 32
Table size (x64 bytes) 32

Header source

sco_result (*mode)(sco_plugin* self, uint64_t id, uint32_t stat, uint32_t* out_mode);
*out_mode = an sc_actor_stat_write_mode: AUTHORITATIVE (your entity has authority), LOCAL_ONLY (no authority, but the stat allows a local change that an authority may overwrite) or DISCARDED (the game would ignore a change). Writes nothing; needs no offline admission.

OK *out_mode set; BAD_ARG null or released self, id 0 or not your player, stat not a 1.0 stat, out_mode NULL; NOT_FOUND not spawned or no record of that stat; UNAVAILABLE game.actor_stats.write off; FAILED game fault; WRONG_THREAD off the game thread.

Table absent: query_service NOT_FOUND. game.actor_stats.write is OFF by default (product switch or SCO_ACTOR_STATS_WRITE=1, plus its rows and game.actor_stats.read); while it is off, or (adjust, set) the session is not certified offline, the answer is UNAVAILABLE.

Copied scalar inputs; one float or uint32 copied out when the out pointer is set; no allocation, no engine pointer transfer, nothing retained. No lease: a write is a one-shot game adjust.

Game thread only; WRONG_THREAD elsewhere before any game access.

No plugin callback.

Calls the game’s own stat-adjust function at most once under a fault guard; no plugin re-entry.

Nothing is restored on unload: the stats are gameplay state the game changes every tick. game.actors’ stop withdraws the table and clears the capability.

Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.

Language Catalogue status Source evidence / wrapper tokens
c direct include/sc_actor_stats_write.h
(*mode)
cpp direct include/sc_actor_stats_write.h
(*mode)
csharp unsupported docs/game/actor-stats.md
The C# and Lua game.actor_stats routes are unsupported in 1.0, for reads and writes.
lua unsupported docs/game/actor-stats.md
The C# and Lua game.actor_stats routes are unsupported in 1.0, for reads and writes.

None identified in the catalogue; this is not proof none can exist.

ABI pins prove layout, not semantic behavior or a live game session.