IsPC1stPerson

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Returns 1 if the camera is in 1st person view, and returns 0 if the camera is in 3rd person view.

Syntax

[help]
(0, 1:int) IsPC1stPerson

Example

if IsPC1stPerson 

Notes

IsPC1stPerson will return 1 for 1 frame during certain in game actions even if the player is playing in 3rd person view. These actions include:

- Aiming and Un-Aiming with a scoped weapon (1 frame for each action)

- Opening & Closing the Pipboy (1 frame for each action)

- Entering & Exiting VATS (1 frame for each action)

Compounding this issue is that for scoped weapons, the GetPCUsingScope function will return 0 for the frames IsPC1stPerson will return 1 when aiming/un-aiming.

The Pipboy Opening & Closing frames can be successfully filtered out using GetPipBoyMode

VATS cannot be filtered out with the GetVATSMode function, as again it returns 0 for the frames that IsPC1stPerson will return 1. VATS can instead be filtered out by using IsControlPressed.

See Also