HolyLib Wiki

TestPAS

  boolean pas.TestPAS( Vector pasPosition, Vector hearPosition )

Description

Tests if the give hear position is inside the given pas.

Arguments

1Vector pasPosition
The position to use the PAS from. If given a Entity, it will use it's position. If given a EntityList it will loop thru all of them and return a table instead.
2Vector hearPosition
The position to use as hearing. If given a Entity, it will use it's position.

Returns

1boolean inPAS
Returns true if the position is in the PAS. If given a EntityList it will return a table instead containing all positions