Advertisement
Guest User

Untitled

a guest
May 9th, 2015
690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #include "niemamjuzsily.h"
  4. #include "MyAIController.h"
  5. #include "Engine.h"
  6.  
  7.  
  8. AMyAIController::AMyAIController(const FObjectInitializer &ObjectInitializer) : Super(ObjectInitializer)
  9. {
  10.     if (GEngine) GEngine->AddOnScreenDebugMessage(FMath::Rand(), 5.f, FColor::Yellow, FString("Controler constructor \\o/"));
  11. }
  12.  
  13. void AMyAIController::Tick(float DeltaTime){
  14.     if (GEngine) GEngine->AddOnScreenDebugMessage(12345, 5.f, FColor::Yellow, FString("Controler Tick \\o/"));
  15.     GetPawn()->SetActorLocation(FVector(FMath::RandRange(-300, 300), FMath::RandRange(-300, 300), FMath::RandRange(-300, 300)));
  16.     //MoveToLocation(FVector(FMath::RandRange(-300, 300), FMath::RandRange(-300, 300), FMath::RandRange(-300, 300)));
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement