API ReferenceGE Extensionsflowgraphnodesactivity
Stars Active (Flowgraph Node)
- **Node Name:** `Stars Active`
Overview
- Node Name:
Stars Active - Category:
repeat_instant - Tags:
activity,mission - File:
extensions/flowgraph/nodes/activity/starsActive.lua
Lets flow through if stars with specific keys are active. Only lets flow through if the mission is played in career mode.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Manual/custom flow pin (allowedManualPinTypes includes flow) |
Output Pins
Custom flow output pins are allowed (allowCustomOutPins = true). Each custom pin corresponds to a star key - outputs true if that star is active and enabled.
Behavior
init()- EnablessavePinsandallowCustomOutPinsfor dynamic star-based outputs._executionStarted()- Resets cached active stars data.work()- On each frame:- If
flowis active, retrieves the mission's active stars (cached after first call for performance). - Gets the mission from
self.mgr.activity, unflattens user settings, and callsgameplay_missions_missionScreen.getActiveStarsForUserSettings(). - For each custom flow output pin, sets its value to whether the corresponding star is enabled.
- If
flowis not active, all output pins are set tofalse.
- If
Key Dependencies
gameplay_missions_missionScreen.getActiveStarsForUserSettings()- retrieves star activation infoself.mgr.activity- the current mission context
Notes
- Stars data is fetched once per execution and cached (
self.activeStars) because the lookup is expensive. - Custom output pins should be named to match star keys in the mission.
See Also
- Activity Attempt Node - Related reference
- Activity Flow Node - Related reference
- Activity Hook Trigger Node - Related reference
- FlowGraph Guide - Guide