Author Topic: Obstruction Detection  (Read 808 times)

I need some help making a function that returns if there is an object between an AIPlayer and any other object. The function should work without having the aiplayer stare at the object (for the raycast).
Example:
3D WORLD:
Code: [Select]
Object <------ fxDTSBrick <-------- AIPlayer = Return fxDTSBrick object ID
Example of no obstruction:
3D WORLD:
Code: [Select]
Object <------------------------------ AIPlayer = Return object ID

Take a look at obstructRadiusDamage by port to see how it can be done.

Take a look at obstructRadiusDamage by port to see how it can be done.
Thank you