Skip to content

sc_vehicles_v1.seats

Fills out[0..max) with ship’s seats in the game’s order and sets *out_count to how many were written and *out_more to 1 when the ship has more than that (else 0). out may be NULL when max is 0 (then *out_more says whether the ship has any). SCO_NOT_FOUND: ship isn’t streamed in or isn’t a vehicle. game.vehicles.seats.

sco_result (*)(uint64_t, sc_vehicle_seat *, uint32_t, uint32_t *, uint32_t *)

Service index

Property Value
Symbol sc_vehicles_v1.seats
Record ID sc-vehicles-v1-seats
Service game.vehicles
Table sc_vehicles_v1
Version macro SC_VEHICLES_SERVICE_VERSION
Packed table version 65536
Since / availability size >= 24; 1.0
Complete member extent (x64 bytes) 24
Table size (x64 bytes) 64

Header source

sco_result (*seats)(uint64_t ship, sc_vehicle_seat* out, uint32_t max, uint32_t* out_count, uint32_t* out_more);
Fills out[0..max) with ship’s seats in the game’s order and sets *out_count to how many were written and *out_more to 1 when the ship has more than that (else 0). out may be NULL when max is 0 (then *out_more says whether the ship has any). SCO_NOT_FOUND: ship isn’t streamed in or isn’t a vehicle. game.vehicles.seats.

Absent table: query_service NOT_FOUND; missing operation capability: UNAVAILABLE; self validity as checked by implementation; released-handle refusal unspecified. Additional failures/output state unspecified unless described in the buffer contract.

Absent table: query_service NOT_FOUND

Caller outputs; IDs/seat indexes are streaming-session values. No allocation transfer; internal allocation unspecified.

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

unspecified

unspecified

No in-flight cancellation entrypoint; game acceptance need not mean action completed.

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_vehicles.h
(*seats)
cpp typed-wrapper include/scosdk/game/vehicles.hpp
const sco_result r = ref_->seats(ship, out.data(), static_cast<uint32_t>(out.size()), &count, &m);
csharp typed-wrapper sdk/csharp/Sco.Sdk/Game/Vehicles.cs
fixed (ScVehicleSeat* p = seats) r = _t->seats(ship, p, (uint)seats.Length, &n, &m);
lua restricted plugins/lua/sco_lua_game.c
const sco_result r = GAME_MEMBER(v, sc_vehicles_v1, seats) ? v->seats(ship, g_vehSeats, (uint32_t)(sizeof(g_vehSeats) / sizeof(g_vehSeats[0])), &n, &more)
plugins/lua/sco_lua_game.c
static sc_vehicle_seat g_vehSeats[256];

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

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