How To Make A Prop Follow A Path
51,474 Views
-
using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/Diagnostics } using { /UnrealEngine.com/Temporary/SpatialMath } prop_movement_controller := class(creative_device): @editable PropToMove: creative_prop := creative_prop{} #this can be a prop like a boat or car @editable SpeedOfProp : float := 700.0 var currentTravelPoint : int = 1 @editable travelPoints : []creative_prop := array{} #this is the path, can be made up for example of flags var travelPointsTransform : [int]transform := map{} OnBegin<override>()<suspends>:void= if (set travelPointsTransform[0] = PropToMove.GetTransform()): Print("{travelPointsTransform.Length}") for(Index := 0.. travelPoints.Length): if (point := travelPoints[Index]): if (set travelPointsTransform[Index+1] = point.GetTransform() ): point.Dispose() MoveToNextPoint()
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.