UCharacterMovementComponent::GetNetworkSafeRandomAngleDegrees

Generate a random angle in degrees that is approximately equal between client and server.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual float GetNetworkSafeRandomAngleDegrees() const

Remarks

Generate a random angle in degrees that is approximately equal between client and server. Note that in networked games this result changes with low frequency and has a low period, so should not be used for frequent randomization.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss