From 31fc2e9f2986e33f21e78a97e99e1d1dc21add4b Mon Sep 17 00:00:00 2001 From: seelenkuchen <10817856+seelenkuchen@users.noreply.github.com> Date: Sun, 8 Nov 2026 13:26:01 +0100 Subject: [PATCH] Fix the parameter order of SetThingStateChange in the COG docs The function takes (thing, state, type): the state payload comes before the state-change type. The parameter list and its descriptions now follow that order. Docs only. --- Docs/COG/Functions-Thing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/COG/Functions-Thing.md b/Docs/COG/Functions-Thing.md index c177b3202..bc70d1221 100644 --- a/Docs/COG/Functions-Thing.md +++ b/Docs/COG/Functions-Thing.md @@ -2274,15 +2274,15 @@ Returns: #### SetThingStateChange ```C++ -SetThingStateChange(Thing thing, int type, int param) +SetThingStateChange(Thing thing, int state, int type) ``` Stores a pending actor/player state-change request on `thing`. Parameters: - `thing`: Actor or player thing whose state-change payload should be updated. +- `state`: State payload value written into `stateChange.params.moveFlags`. When `type` is [Actor State-Change Types](Types-And-Modes.md#actor-state-change-types) `SITHACTORSTATECHANGE_ANIMMOVE`, this is typically a combination of [Actor Special-Move Flags](Flags.md#actor-special-move-flags). When `type` is `SITHACTORSTATECHANGE_ARMEDMODE`, this is a [Puppet Armed Modes](Types-And-Modes.md#puppet-armed-modes) value. - `type`: State-change type selector. See [Actor State-Change Types](Types-And-Modes.md#actor-state-change-types). -- `param`: Payload value written into `stateChange.params.moveFlags`. When `type` is [Actor State-Change Types](Types-And-Modes.md#actor-state-change-types) `SITHACTORSTATECHANGE_ANIMMOVE`, this is typically a combination of [Actor Special-Move Flags](Flags.md#actor-special-move-flags). When `type` is `SITHACTORSTATECHANGE_ARMEDMODE`, this is a [Puppet Armed Modes](Types-And-Modes.md#puppet-armed-modes) value. Notes: - Requires an actor or player thing.