Skip to content

sc_creative_v1.set_fly_speed

The fly speed in metres per second: finite, above 0 and at most SC_CREATIVE_FLY_SPEED_MAX (SCO_BAD_ARG otherwise). The game’s own speed comes back when your plugin unloads. SCO_UNAVAILABLE: no fly capability, or the game’s fly speed field wasn’t found on this build. SCO_FAILED: the game’s settings aren’t up yet. game.creative.fly.

sco_result (*)(sco_plugin *, float)

Service index

Property Value
Symbol sc_creative_v1.set_fly_speed
Record ID sc-creative-v1-set-fly-speed
Service game.creative
Table sc_creative_v1
Version macro SC_CREATIVE_SERVICE_VERSION
Packed table version 65536
Since / availability size >= 32; 1.0
Complete member extent (x64 bytes) 32
Table size (x64 bytes) 64

Header source

sco_result (*set_fly_speed)(sco_plugin* self, float mps);
The fly speed in metres per second: finite, above 0 and at most SC_CREATIVE_FLY_SPEED_MAX (SCO_BAD_ARG otherwise). The game’s own speed comes back when your plugin unloads. SCO_UNAVAILABLE: no fly capability, or the game’s fly speed field wasn’t found on this build. SCO_FAILED: the game’s settings aren’t up yet. game.creative.fly.

Absent table: query_service NOT_FOUND; missing feature capability: UNAVAILABLE; null/unknown self: BAD_ARG; released-handle refusal unspecified. Additional failures/output state unspecified unless described in the buffer contract.

Absent table: query_service NOT_FOUND

Caller outputs; host owns toggle state. 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; owned toggles switched off and speed restored on ordinary unload/non-retained crash cleanup. 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_creative.h
(*set_fly_speed)
cpp typed-wrapper include/scosdk/game/creative.hpp
sco_result SetFlySpeed(float mps) const noexcept { return detail::CanCall(ref_.Get(), &sc_creative_v1::set_fly_speed) ? ref_->set_fly_speed(self_, mps) : SCO_UNAVAILABLE; }
csharp typed-wrapper sdk/csharp/Sco.Sdk/Game/Creative.cs
public ScoResult SetFlySpeed(float mps) => _t == null || _t->size < (uint)((byte*)&_t->set_fly_speed - (byte*)_t + sizeof(nint)) || _t->set_fly_speed == null ? ScoResult.Unavailable : _t->set_fly_speed(Self, mps);
lua unsupported sdk/docs/lua.md
Read-only: scripts can see which toggles are on but can’t switch any

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

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