Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
20 results for waypoint
Variables: WaypointLocations (Array<Vector>), CurrentWaypointIndex (int). Pattern: EventBeginPlay → set up WaypointLocations array → MoveToNextWaypoint (custom event). MoveToNextWaypoint: GetController → CastTo<AIController> → MoveToLocation(Dest=WaypointLocations[CurrentWaypointIndex], AcceptanceRadius=100) → Bind OnMoveCompleted delegate → In callback: Increment CurrentWaypointIndex (modulo array length) → call MoveToNextWaypoint again. Alternative: Use SimpleMoveToLocation for simpler cases. Requires NavMeshBoundsVolume in scene. GetRandomReachablePointInRadius for random wander.
Pattern: Variables PatrolPoints(Array<Vector>), CurrentIndex(int)=0. BeginPlay: SimpleMoveToLocation(PatrolPoints[0]). OnMoveCompleted (or Tick+distance check): SET CurrentIndex = (CurrentIndex+1) % Array_Length → SimpleMoveToLocation(PatrolPoints[CurrentIndex]). Add Delay between moves for wait time. Use AIMoveTo for more control.
Outputs are 'Location' and 'Rotation' — NOT ReturnValue. Used for line traces from camera.
GetPlayerViewPointUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoProjectPointToNavigationUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPure node. Returns false if no valid nav point found. Good for patrol/wander AI behaviors.
GetRandomReachablePointInRadiusUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoUGameplayStatics::PlaySoundAtLocation.
Play Sound at LocationUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoAPlayerController method.
Project World Location To ScreenUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoTraceChannel: ETraceTypeQuery::TraceTypeQuery1=Visibility, TraceTypeQuery2=Camera. DrawDebugType: None/ForOneFrame/ForDuration/Persistent.
LineTraceByChannelUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoUGameplayStatics::SpawnEmitterAtLocation. For Niagara, use SpawnSystemAtLocation.
Spawn Emitter at LocationUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoSetActorLocationUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago