GetP2PRayCastRange
From GECK
A function added by the JIP NVSE Plugin.
Contents
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
(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
- Uses GECK's Collision flag
- The flags can be located in Collision Flags