Sgmoonstormstatic
Based on game build 714014 | Last updated: 2026-03-08
Overview
SGmoonstormstatic is a stategraph that controls the locomotion behavior of moonstorm static capturable entities. It toggles between moving and idle states based on whether the entity is requested to move forward and whether it has been explicitly targeted for capture (via moonstormstaticcapturable_targeted). It relies on the locomotor component to execute movement and stop actions. The stategraph ensures smooth transitions and prevents conflicting movement commands during capture events.
Usage example
This stategraph is automatically applied to specific prefabs by the game engine during moonstorm events. Modders typically do not instantiate it directly; instead, it is referenced by name "moonstormstatic" in StateGraph definitions for capturable entities. To extend its behavior, one would override or extend the parent stategraph and inject custom states or event handlers.
Dependencies & tags
Components used: locomotor (uses WalkForward, Stop, and WantsToMoveForward)
Tags: Adds moving and canrotate in moving state; adds idle and canrotate in idle state.
Properties
No public properties.
Main functions
Not applicable. This is a StateGraph definition, not a component with methods.
Events & listeners
- Listens to:
locomote— triggered when locomotion state changes (vialocomotor:Stop/WalkForward). Checks for mismatch between currentmovingtag and locomotor'swantstomoveforwardflag. If mismatched, either entersmovingor returns toidle.moonstormstaticcapturable_targeted— setsinst.sg.mem.holdstill = trueand forces transition toidleif currently moving.moonstormstaticcapturable_untargeted— clearsinst.sg.mem.holdstill.
- Pushes: None. (This stategraph only responds to events.)