VisualScriptGameplayWaitProvider
Gameplay state behind WaitInputAction, WaitOverlap and WaitAttributeChange. Input, trigger volumes and the ability system all live above Visual Scripting, so the Game module installs one of these; the actions own only the edge detection and the pin choice. With none installed each of them fires On Failed rather than waiting forever on state nobody can report.
- Module
- VisualScripting
- Header
#include "VisualScripting/VisualScriptAsync.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
virtual ~VisualScriptGameplayWaitProvider() = default | ~VisualScriptGameplayWaitProvider |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | IsInputActionActive | Whether the named input action is held / active this frame. |
bool | CollectOverlapping | Every actor currently inside source's overlap volume (a trigger actor or the trigger component itself), keeping only those carrying tagFilter when it is non-empty. |
bool | ReadAttribute | Current value of a named attribute on target (an actor carrying an ability system, or the ability-system component). |
Function details
~VisualScriptGameplayWaitProvider
virtual ~VisualScriptGameplayWaitProvider() = defaultIsInputActionActive
virtual bool IsInputActionActive(const std::string& action) = 0Whether the named input action is held / active this frame.
CollectOverlapping
virtual bool CollectOverlapping(MObject* source, const std::string& tagFilter, std::vector<MObject*>& out) = 0Every actor currently inside source's overlap volume (a trigger actor or the trigger component itself), keeping only those carrying tagFilter when it is non-empty. False = source has no volume.
ReadAttribute
virtual bool ReadAttribute(MObject* target, const std::string& attribute, float& outValue) = 0Current value of a named attribute on target (an actor carrying an ability system, or the ability-system component). False = no ability system, or no such attribute on it.