IsPlayerLookingAtAnotherPlayer

From The KillerJim Mod Wiki

PlayerProxy::IsPlayerLookingAtAnotherPlayer

IsPlayerLookingAtAnotherPlayer.png

Client Only Function - This API call can only be called on clients.

Description

This support function quickly allows you to detect if the proxy is looking at another player proxy; normally this would be used for testing if the local proxy (local user) is looking at another player to display information about them on a HUD.

Arguments
1 Float Distance
How far, in world units, the look in-front of the player camera for another player
Return Values
1 KJModPlayerProxy PlayerProxy
If any player was detected the proxy is returned, other nullptr.

Playing

Developers

Developer Reference