Search
 
SCRIPT & CODE EXAMPLE
 

CPP

get player pawn

//file to include
#include "Kismet/GameplayStatics.h"

//Syntax
static APawn * GetPlayerPawn(const UObject * WorldContextObject, int32 PlayerIndex);

//ExampleCode
APawn* PlayerPawn = UGameplayStatics::GetPlayerPawn(GetWorld(), 0);
//								this is a reference to world  | This is the index of player which you want. In this case  have written 0 that means the first player
//For more information vist https://docs.unrealengine.com/en-US/API/Runtime/Engine/Kismet/UGameplayStatics/GetPlayerPawn/index.html											
Comment

PREVIOUS NEXT
Code Example
Cpp :: run c++ files on chrome book 
Cpp :: 2160. Minimum Sum of Four Digit Number After Splitting Digits leetcode solution in c++ 
Cpp :: calculate number of edges of graph in data structure c++ 
Cpp :: convert c++ code to exe 
Cpp :: wap in c++ to understand function template 
Cpp :: font family slick 
Cpp :: polymorphism c++ virtual 
Cpp :: Smooth Poti values on Arduino 
Cpp :: how to make a goto area in c++ 
Cpp :: 496. Next Greater Element I.cpp 
Cpp :: c++ sort a 2d vector by column 
Cpp :: reference variablesr in c++ 
Cpp :: FINAL CODES_MY_OS_LAB 
Cpp :: Stack Modified 
Cpp :: iterator c++ 
Cpp :: c++ map key exists 
Cpp :: for statement in c++ 
Cpp :: c++ new operator 
Cpp :: c++ filesystem remove file 
Cpp :: what does for do in c++ 
C :: color text in C 
C :: terminal count files in directory 
C :: how to use gets after scanf 
C :: same project on different monitor in intellij mac 
C :: printf fill with 0 
C :: successeur nombre chaine 
C :: nested loop in c 
C :: c define array size 
C :: multiplicationin c 
C :: Area of a Circle in C Programming 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =