Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #include "niemamjuzsily.h"
- #include "MyAIController.h"
- #include "Engine.h"
- AMyAIController::AMyAIController(const FObjectInitializer &ObjectInitializer) : Super(ObjectInitializer)
- {
- if (GEngine) GEngine->AddOnScreenDebugMessage(FMath::Rand(), 5.f, FColor::Yellow, FString("Controler constructor \\o/"));
- }
- void AMyAIController::Tick(float DeltaTime){
- if (GEngine) GEngine->AddOnScreenDebugMessage(12345, 5.f, FColor::Yellow, FString("Controler Tick \\o/"));
- GetPawn()->SetActorLocation(FVector(FMath::RandRange(-300, 300), FMath::RandRange(-300, 300), FMath::RandRange(-300, 300)));
- //MoveToLocation(FVector(FMath::RandRange(-300, 300), FMath::RandRange(-300, 300), FMath::RandRange(-300, 300)));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement