Sgboatbumper
Based on game build 714014 | Last updated: 2026-03-08
Overview
SGboatbumper is a stategraph responsible for driving the visual behavior of boat bumper entities—handling transitions between idle, placement, hit (impact), grade change (upgrade/downgrade), and death states. It works with animation playback (AnimState), sound effects (via prefab spawning), and state timers to provide clear feedback during entity interactions. This stategraph does not contain logic for collision or gameplay rules; it solely governs rendering and state transitions.
Usage example
This stategraph is referenced by the game engine when the boatbumper entity is initialized. Modders do not directly instantiate or manipulate this stategraph; instead, they interact with the boatbumper prefab, which applies this stategraph via inst:AddStateGraph("boatbumper", "SGboatbumper").
Dependencies & tags
Components used: None identified
Tags: Uses internal state tags idle, busy, and dead to control animation flow and integration with the game’s state system.
Properties
No public properties are defined in this stategraph.
Main functions
This file does not define any public functions; it returns a StateGraph definition. All logic resides within state hooks (onenter, ontimeout, events) and helper functions (PlayHitFX).
Events & listeners
- Listens to:
animover— triggers state transition back toidleafter animation completes (used inplace,hit, andchangegradestates).- Timers (
ontimeout) — transitions fromchangegradetoidleafter animation duration elapses.
- Pushes: None identified