GetPawnCameraComponent

From The KillerJim Mod Wiki

PlayerProxy::GetPawnCameraComponent

GetPawnCameraComponent.png

Server Only Function - This is an function that works on servers

Client (local) Function - If the player proxy is the "local" player then this is valid

Description

This function will return the active camera component for the pawn owned by this player proxy. This will be the 1st person camera, if in 1st person view, or the 3rd person camera if in 3rd person camera view.

This function can be called on the server for any player proxy (i.e. any player), however if your calling this on the client then it will work only for the "local" player proxy (i.e. in a game with multiple players, you will have a player proxy for every player - including yourself. If you call this function on any player proxy that does not represent the local player then no camera will be returned).

Playing

Developers

Developer Reference