class

FWolangScriptComponents

The script components of an actor: added from Details, stored with the level, found for the variable hosts.

Module
Scripting
Header
#include "Scripting/MWolangComponent.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
MWolangComponent*AddA new component of the script class, named after it (Health, Health1, ...) unless name is given; begins play at once when the actor already has.
boolRemoveDetaches and destroys it (the undo of Add).
std::vector<MWolangComponent*>Of
MWolangComponent*Find

Function details

Add

C++
static MWolangComponent* Add(AActor* actor, const std::string& className, const std::string& name = std::string())

A new component of the script class, named after it (Health, Health1, ...) unless name is given; begins play at once when the actor already has.

Remove

C++
static bool Remove(AActor* actor, MWolangComponent* component)

Detaches and destroys it (the undo of Add).

Of

C++
static std::vector<MWolangComponent*> Of(AActor* actor)

Find

C++
static MWolangComponent* Find(AActor* actor, const std::string& name)
Generated from Scripting/MWolangComponent.h via scripting.json · Nov 3, 2026Version 1.0.0