class

MGameplayStatics

Module
Game
Header
#include "Game/MGameplayStatics.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Public functions

ReturnsNameDescription
floatGetWorldDeltaSeconds
floatGetTimeSeconds
floatGetRealTimeSeconds
voidSetGamePaused
boolIsGamePaused
voidSetGlobalTimeDilation
floatGetGlobalTimeDilation
AActor*SpawnActorByClass
voidDestroyActor
Vec3GetActorLocation
voidSetActorLocation
Vec3GetActorRotationEuler
voidSetActorRotationEuler
AActor*GetPlayerPawn
MGameInstance*GetGameInstance
floatApplyDamage
boolIsActorDead
floatGetDistance
boolLineTraceByChannelThe reflected two-arg form traces Visibility (Visual Script nodes and existing graphs call it with exactly two inputs — the VM's arity check is strict, so the channel rides an unreflected overload instead of a third param).
boolLineTraceByChannel
Vec3GetLastHitLocation
AActor*GetLastHitActor
Vec3GetLastHitNormal
floatGetLastHitDistance
boolSphereTraceByChannelSweep and overlap verbs over the same channel filtering.
boolSphereTraceByChannel
int32_tLineTraceMultiByChannelEvery body the trace passed through, in order, ending with the one that blocked it.
int32_tLineTraceMultiByChannel
int32_tSphereTraceMultiByChannel
int32_tSphereTraceMultiByChannel
boolCapsuleTraceByChannelAn upright capsule — the shape of a character — swept from start to end: "would a pawn fit through here" rather than "would a ball".
boolCapsuleTraceByChannel
int32_tCapsuleTraceMultiByChannel
int32_tCapsuleTraceMultiByChannel
int32_tOverlapSphereActorsNarrow-phase overlap: a body counts only when its actual shape is inside the volume, not merely its bounding box.
int32_tOverlapSphereActors
int32_tOverlapBoxActors
int32_tOverlapBoxActors
int32_tOverlapCapsuleActors
int32_tOverlapCapsuleActors
boolLineTraceAnyExistence tests that stop at the first body that qualifies, and a point probe.
boolLineTraceAny
boolSphereTraceAny
boolSphereTraceAny
boolAnyOverlapSphere
boolAnyOverlapSphere
boolAnyOverlapBox
boolAnyOverlapBox
int32_tPointOverlapActors
int32_tPointOverlapActors
int32_tOverlapSphereByProfile
voidSetTraceComplexity
voidSetTraceBackFaces
voidSetTraceIgnoreTriggers
voidResetTraceOptions
std::stringGetLastHitSurfaceWhat the struck surface is made of — the physics material's surface type (Concrete, Metal, Grass, ...), read per triangle on a mesh collider.
std::stringGetTraceHitSurface
int32_tGetTraceHitCount
AActor*GetTraceHitActor
Vec3GetTraceHitLocation
Vec3GetTraceHitNormal
boolIsTraceHitBlockingTrue when the hit at index stopped the trace, false when it was an overlap the trace passed through.
voidPlaySoundAtLocation
boolTravelToScene
std::stringGetCurrentSceneName
voidSetWorldOverride
MWorld*ResolveWorld

Function details

GetWorldDeltaSeconds

C++
float GetWorldDeltaSeconds() const

GetTimeSeconds

C++
float GetTimeSeconds() const

GetRealTimeSeconds

C++
float GetRealTimeSeconds() const

SetGamePaused

C++
void SetGamePaused(bool paused)

IsGamePaused

C++
bool IsGamePaused() const

SetGlobalTimeDilation

C++
void SetGlobalTimeDilation(float dilation)

GetGlobalTimeDilation

C++
float GetGlobalTimeDilation() const

SpawnActorByClass

C++
AActor* SpawnActorByClass(const std::string& className, const Vec3& position)

DestroyActor

C++
void DestroyActor(AActor* actor)

GetActorLocation

C++
Vec3 GetActorLocation(AActor* actor) const

SetActorLocation

C++
void SetActorLocation(AActor* actor, const Vec3& location)

GetActorRotationEuler

C++
Vec3 GetActorRotationEuler(AActor* actor) const

SetActorRotationEuler

C++
void SetActorRotationEuler(AActor* actor, const Vec3& degrees)

GetPlayerPawn

C++
AActor* GetPlayerPawn() const

GetGameInstance

C++
MGameInstance* GetGameInstance() const

ApplyDamage

C++
float ApplyDamage(AActor* target, float amount, AActor* instigator)

IsActorDead

C++
bool IsActorDead(AActor* target) const

GetDistance

C++
float GetDistance(AActor* a, AActor* b) const

LineTraceByChannel

C++
bool LineTraceByChannel(const Vec3& start, const Vec3& end)

The reflected two-arg form traces Visibility (Visual Script nodes and existing graphs call it with exactly two inputs — the VM's arity check is strict, so the channel rides an unreflected overload instead of a third param).

LineTraceByChannel

C++
bool LineTraceByChannel(const Vec3& start, const Vec3& end, ECollisionChannel traceChannel)

GetLastHitLocation

C++
Vec3 GetLastHitLocation() const

GetLastHitActor

C++
AActor* GetLastHitActor() const

GetLastHitNormal

C++
Vec3 GetLastHitNormal() const

GetLastHitDistance

C++
float GetLastHitDistance() const

SphereTraceByChannel

C++
bool SphereTraceByChannel(const Vec3& start, const Vec3& end, float radius)

Sweep and overlap verbs over the same channel filtering. Each fills the shared hit buffer read by GetTraceHit*, so a graph traces once and then walks the results; the single-hit forms also refresh GetLastHit*.

SphereTraceByChannel

C++
bool SphereTraceByChannel(const Vec3& start, const Vec3& end, float radius, ECollisionChannel traceChannel)

LineTraceMultiByChannel

C++
int32_t LineTraceMultiByChannel(const Vec3& start, const Vec3& end)

Every body the trace passed through, in order, ending with the one that blocked it. Returns the hit count.

LineTraceMultiByChannel

C++
int32_t LineTraceMultiByChannel(const Vec3& start, const Vec3& end, ECollisionChannel traceChannel)

SphereTraceMultiByChannel

C++
int32_t SphereTraceMultiByChannel(const Vec3& start, const Vec3& end, float radius)

SphereTraceMultiByChannel

C++
int32_t SphereTraceMultiByChannel(const Vec3& start, const Vec3& end, float radius, ECollisionChannel traceChannel)

CapsuleTraceByChannel

C++
bool CapsuleTraceByChannel(const Vec3& start, const Vec3& end, float radius, float halfHeight)

An upright capsule — the shape of a character — swept from start to end: "would a pawn fit through here" rather than "would a ball". Half height is the cylinder's half, the hemispherical caps come on top of it.

CapsuleTraceByChannel

C++
bool CapsuleTraceByChannel(const Vec3& start, const Vec3& end, float radius, float halfHeight, ECollisionChannel traceChannel)

CapsuleTraceMultiByChannel

C++
int32_t CapsuleTraceMultiByChannel(const Vec3& start, const Vec3& end, float radius, float halfHeight)

CapsuleTraceMultiByChannel

C++
int32_t CapsuleTraceMultiByChannel(const Vec3& start, const Vec3& end, float radius, float halfHeight, ECollisionChannel traceChannel)

OverlapSphereActors

C++
int32_t OverlapSphereActors(const Vec3& center, float radius)

Narrow-phase overlap: a body counts only when its actual shape is inside the volume, not merely its bounding box. Both fill the shared hit buffer.

OverlapSphereActors

C++
int32_t OverlapSphereActors(const Vec3& center, float radius, ECollisionChannel traceChannel)

OverlapBoxActors

C++
int32_t OverlapBoxActors(const Vec3& center, const Vec3& halfExtents)

OverlapBoxActors

C++
int32_t OverlapBoxActors(const Vec3& center, const Vec3& halfExtents, ECollisionChannel traceChannel)

OverlapCapsuleActors

C++
int32_t OverlapCapsuleActors(const Vec3& center, float radius, float halfHeight)

OverlapCapsuleActors

C++
int32_t OverlapCapsuleActors(const Vec3& center, float radius, float halfHeight, ECollisionChannel traceChannel)

LineTraceAny

C++
bool LineTraceAny(const Vec3& start, const Vec3& end)

Existence tests that stop at the first body that qualifies, and a point probe. The overlap and point verbs fill the shared hit buffer, nearest first; the Any verbs only answer yes or no.

LineTraceAny

C++
bool LineTraceAny(const Vec3& start, const Vec3& end, ECollisionChannel traceChannel)

SphereTraceAny

C++
bool SphereTraceAny(const Vec3& start, const Vec3& end, float radius)

SphereTraceAny

C++
bool SphereTraceAny(const Vec3& start, const Vec3& end, float radius, ECollisionChannel traceChannel)

AnyOverlapSphere

C++
bool AnyOverlapSphere(const Vec3& center, float radius)

AnyOverlapSphere

C++
bool AnyOverlapSphere(const Vec3& center, float radius, ECollisionChannel traceChannel)

AnyOverlapBox

C++
bool AnyOverlapBox(const Vec3& center, const Vec3& halfExtents)

AnyOverlapBox

C++
bool AnyOverlapBox(const Vec3& center, const Vec3& halfExtents, ECollisionChannel traceChannel)

PointOverlapActors

C++
int32_t PointOverlapActors(const Vec3& point)

PointOverlapActors

C++
int32_t PointOverlapActors(const Vec3& point, ECollisionChannel traceChannel)

OverlapSphereByProfile

C++
int32_t OverlapSphereByProfile(const Vec3& center, float radius, const std::string& profile)

SetTraceComplexity

C++
void SetTraceComplexity(int32_t mode)

SetTraceBackFaces

C++
void SetTraceBackFaces(int32_t mode)

SetTraceIgnoreTriggers

C++
void SetTraceIgnoreTriggers(bool ignore)

ResetTraceOptions

C++
void ResetTraceOptions()

GetLastHitSurface

C++
std::string GetLastHitSurface() const

What the struck surface is made of — the physics material's surface type (Concrete, Metal, Grass, ...), read per triangle on a mesh collider. The name footsteps, impact effects and decals key on.

GetTraceHitSurface

C++
std::string GetTraceHitSurface(int32_t index) const

GetTraceHitCount

C++
int32_t GetTraceHitCount() const

GetTraceHitActor

C++
AActor* GetTraceHitActor(int32_t index) const

GetTraceHitLocation

C++
Vec3 GetTraceHitLocation(int32_t index) const

GetTraceHitNormal

C++
Vec3 GetTraceHitNormal(int32_t index) const

IsTraceHitBlocking

C++
bool IsTraceHitBlocking(int32_t index) const

True when the hit at index stopped the trace, false when it was an overlap the trace passed through.

PlaySoundAtLocation

C++
void PlaySoundAtLocation(const std::string& clipPath, const Vec3& position, float volume)

TravelToScene

C++
bool TravelToScene(const std::string& scenePath)

GetCurrentSceneName

C++
std::string GetCurrentSceneName() const

SetWorldOverride

C++
static void SetWorldOverride(MWorld* world)

ResolveWorld

C++
static MWorld* ResolveWorld()
Generated from Game/MGameplayStatics.h via game.json · Nov 5, 2026Version 1.0.0