Browsing PAC3's section
← Back to ACE
🔁

Mirrored article

This page is synced automatically from wiki.pac3.info (last synced 5 hours ago). Edits made here will be overwritten on the next sync — contribute on the source wiki instead.

owner_eye_angle_pitch()

📁 ProxyUpdated 1 month ago•5 views
proxy , function , eye angle owner_eye_angle_pitch() Returns the world eye angle pitch of the owner, in a range of values from -0.0056179768 (straight down) to 1.0056179768 (straight up). Root Owner W

proxy ,
function ,
eye angle

owner_eye_angle_pitch()

Returns the world eye angle pitch of the owner, in a range of values from -0.0056179768 (straight down) to 1.0056179768 (straight up).

Root Owner

When root owner is enabled, the owner is the player (or whatever entity the outfit is applied to). When it's disabled, the owner is the proxy's parent, or its target entity.

Value Range

A value of 0 corresponds to 89° below the horizontal, and 1 corresponds to 89° above the horizontal.

Player cameras cannot normally go beyond these values. Other entities can.

To make 0 and 1 actually correspond to +/-90° , add .0056179768 , then divide the sum by 1.0112359536 .

Usage & Examples

Correct 0-1 range for +/-90° angles

((owner_eye_angle_pitch() + .0056179768 ) / 1.0112359536)

This is used instead of owner_eye_angle_pitch() for entities other than the player to get correct 0 to 1 values when 'looking' straight up or down.

Similar functions

- owner_eye_angle_pitch()

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.