Search
 
SCRIPT & CODE EXAMPLE
 

CPP

how to get the player view point location and rotation in ue4 c++

#include "GameFrameworks/PlayerController.h"


void YourFunction(int32 yourargument)//note: The return type and the argument tupe is assumed. You can change it to whatever you want.
{
	FVector PlayerViewPointLocation;
  	FRotator PlayerViewPointLocation;
  
  	APlayerController::GetPlayerViewPoint(OUT PlayerViewPointLocation, OUT PlayerViewPointLocation); //Note: You can also use GetWorld()->GetPlayerController()->GetPlayerViewPointLocation() but you have to include the file given above.
  	
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: priority queue c++ time complexity 
Cpp :: c++ remove whitespace from string and keep the same size 
Cpp :: cannot find -lsqlite3 C++ compiler error 
Cpp :: how to writt array in c++ 
Cpp :: how to get a word from file c++ 
Cpp :: crypto npm random bytes 
Cpp :: prime number program in c c++ 
Cpp :: finding size of columns and rows in 2d vector c++ 
Cpp :: c++ parse int 
Cpp :: find character in string c++ 
Cpp :: c++ vector element search 
Cpp :: how to read a line from the console in c++ 
Cpp :: how to play sound in c++ 
Cpp :: how to change string to lowercase and uperCase in c++ 
Cpp :: c++ rule of five 
Cpp :: how to make a n*n 2d dynamic array in c++ 
Cpp :: how to read wav file in C++ 
Cpp :: typedef vector c++ 
Cpp :: delete last char of string c++ 
Cpp :: parallelize for loop c++ 
Cpp :: c++ case 
Cpp :: c++ how to make a negative float positive 
Cpp :: What should main() return in C++? 
Cpp :: c++ vector loop delete 
Cpp :: c++ typeid 
Cpp :: c++ segmented sieve 
Cpp :: c++ programming language 
Cpp :: ubuntu dotnet core install 
Cpp :: how to get the size of a vector in c++ 
Cpp :: c++ Sum of all the factors of a number 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =