CToolPlayer
Overview
Player pawn and controller access shortcuts.
Functions
| Name | Description |
|---|---|
| retrievePlayer | Get the first player’s pawn from any world context object. |
| isPlayer | Check if a pawn is the local player. |
| retrievePlayerController | Get player controller index 0. |
APawn* player = retrievePlayer(this);
if (isPlayer(myPawn)) {
// this is the local player
}
APlayerController* pc = retrievePlayerController(myActor);