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.
Signature
Section titled “Signature”sco_result (*)(sco_plugin *, float)Service and availability
Section titled “Service and availability”| 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 |
Parameters and buffers
Section titled “Parameters and buffers”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.
Results and failures
Section titled “Results and failures”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 capability
Section titled “Absent capability”Absent table: query_service NOT_FOUND
Ownership
Section titled “Ownership”Caller outputs; host owns toggle state. No allocation transfer; internal allocation unspecified.
Thread affinity
Section titled “Thread affinity”Game thread only (WRONG_THREAD elsewhere); last_error any thread. Recursive reentrancy unspecified.
Callback context
Section titled “Callback context”unspecified
Reentrancy
Section titled “Reentrancy”unspecified
Cleanup and cancellation
Section titled “Cleanup and cancellation”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.
Language mappings
Section titled “Language mappings”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.hppsco_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.cspublic 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.mdRead-only: scripts can see which toggles are on but can’t switch any |
Examples
Section titled “Examples”None identified in the catalogue; this is not proof none can exist.
- tests/abi_game_creative.c
- tests/test_app.cpp
- tests/test_lua.cpp
- tests/test_sdk.cpp
- sdk/csharp/Sco.Sdk.Tests/GameFakeHost.cs
- tools/test.sh
- sdk/csharp/Sco.Sdk.Tests/GameLayout.cs
ABI pins prove layout, not semantic behavior or a live game session.