Animation Controller Device
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/Colors }
CustomCreativeAnimation<public> := module:
animation_controller_device := class(creative_device):
@editable
TargetProp:creative_prop = creative_prop{}
@editable
Keyframes:[]custom_keyframe_delta = array{}
@editable
AnimationMode<public>:animation_mode = animation_mode.OneShot
@editable
IsAutoPlay<public>:logic = false
@editable
IsPrintLog:logic = false
@editable
LogPrefix:string = ""
@editable
LogColor:color = NamedColors.White
StoppedEvent<private>:event() = event(){}
OnBegin<override>()<suspends>:void=
if(AnimController := TargetProp.GetAnimationController[]):
AnimController.KeyframeReachedEvent.Subscribe(OnKeyframeReached)
AnimController.MovementCompleteEvent.Subscribe(OnMovementComplete)
AnimController.StateChangedEvent.Subscribe(OnStateChanged)
if(IsAutoPlay?):
Play()
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.