GetP2PRayCastRange

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns the distance between Collision and Target X Y Z coordinates.

Warning

The calculation is not the fastest thing on the planet, and spamming a bunch of casts every frame might be not the healthiest thing for Fallout New Vegas performance

Syntax

[help]
(float) GetP2PRayCastRange fOriginX:float fOriginY:float fOriginZ:float fTargetX:float fTargetY:float fTargetZ:float iColliderFlag:int

Example

distanceBetweenCollisionAndTargetXYZ = GetP2PRayCastRange fOriginX, fOriginY, fOriginZ, fTargetX, fTargetY, fTargetZ, iColliderFlag 

Notes

See Also