Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
SCR_AIDangerReaction_Vehicle Interface Reference
Inheritance diagram for SCR_AIDangerReaction_Vehicle:
[legend]

Public Member Functions

override bool PerformReaction (notnull SCR_AIUtilityComponent utility, notnull SCR_AIThreatSystem threatSystem, AIDangerEvent dangerEvent, int dangerEventCount)
 
bool PerformReaction (notnull SCR_AIUtilityComponent utility, notnull SCR_AIThreatSystem threatSystem, AIDangerEvent dangerEvent, int dangerEventCount)
 

Protected Member Functions

bool VehicleIntersectsMyPath (notnull IEntity myVehicle, notnull IEntity otherVehicle)
 

Static Protected Member Functions

static bool MovingPointSphereIntersectionTest (vector p, vector v, float r, out float outT)
 Tests intersection of a linearly moving point and a sphere located at 0,0,0.
 

Additional Inherited Members

- Public Attributes inherited from SCR_AIDangerReaction
SCR_EAIDangerEventType m_eType
 

Member Function Documentation

◆ MovingPointSphereIntersectionTest()

static bool SCR_AIDangerReaction_Vehicle.MovingPointSphereIntersectionTest ( vector  p,
vector  v,
float  r,
out float  outT 
)
staticprotected

Tests intersection of a linearly moving point and a sphere located at 0,0,0.

In general there are up to two intersection moments in this problem. Thus the function returns true if there will be an intersection, but only if intersection time is positive (in future). If two intersections are detected in future, it returns the nearest one. p - starting position of point v - velocity of point r - radius of sphere outT - output, time of collision.

◆ PerformReaction()

override bool SCR_AIDangerReaction_Vehicle.PerformReaction ( notnull SCR_AIUtilityComponent  utility,
notnull SCR_AIThreatSystem  threatSystem,
AIDangerEvent  dangerEvent,
int  dangerEventCount 
)

Implements SCR_AIDangerReaction.

◆ VehicleIntersectsMyPath()

bool SCR_AIDangerReaction_Vehicle.VehicleIntersectsMyPath ( notnull IEntity  myVehicle,
notnull IEntity  otherVehicle 
)
protected

The documentation for this interface was generated from the following file: