Skip to content

sc_actors_v1.state

1.1. *out_state = an sc_actor_state. Not published yet: SCO_UNAVAILABLE until game.actors.state is ready. Implementation: output initialized to 0; NULL out BAD_ARG, wrong thread WRONG_THREAD; valid call still UNAVAILABLE, not an ALIVE answer.

sco_result (*)(uint64_t, uint32_t *)

Service index

Property Value
Symbol sc_actors_v1.state
Record ID sc-actors-v1-state
Service game.actors
Table sc_actors_v1
Version macro SC_ACTORS_VERSION_1_1
Packed table version 65537
Since / availability size >= 56; 1.1
Complete member extent (x64 bytes) 56
Table size (x64 bytes) 56

Header source

sco_result (*state)(uint64_t id, uint32_t* out_state);
1.1. *out_state = an sc_actor_state. Not published yet: SCO_UNAVAILABLE until game.actors.state is ready. Implementation: output initialized to 0; NULL out BAD_ARG, wrong thread WRONG_THREAD; valid call still UNAVAILABLE, not an ALIVE answer.

Absent table: query_service NOT_FOUND; missing operation capability: UNAVAILABLE; invalid/released self: BAD_ARG. See method detail for game failures. Additional failures/output state unspecified unless described in the buffer contract.

Absent table: query_service NOT_FOUND

Caller buffers; no allocation crosses boundary. Host owns NPC tracking; entity IDs are session values. Internal allocation unspecified.

Game thread only (WRONG_THREAD elsewhere); last_error any thread. Recursive reentrancy unspecified.

unspecified

unspecified

No in-flight cancellation entrypoint; owned NPCs removed on ordinary unload/non-retained crash cleanup; despawn starts deferred removal. Retained-provider faults skip owner resource-release hooks and require restart; backing resources remain retained, not safe for cached calls.

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_actors.h
(*state)
cpp typed-wrapper include/scosdk/game/actors.hpp
const sco_result r = t_->state(id, &raw);
csharp typed-wrapper sdk/csharp/Sco.Sdk/Game/Actors.cs
ScoResult r = !Covers(48) || _t->state == null ? ScoResult.Unavailable : _t->state(id, &s);
lua unsupported sdk/docs/lua.md
state isn’t in Lua: it isn’t available yet

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

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