Arma Reforger Script API
|
Holds data about a cover point. More...
Public Member Functions | |
vector | GetPosition () |
bool | IsValid () |
Returns true if cover position is not zero. | |
void | Release () |
Unlocks the cover and invalidates it. | |
void | SCR_AICoverLock (int tilex, int tiley, int coverId, vector coverPos, vector coverTallestPos) |
void | ~SCR_AICoverLock () |
float | CosAngleToThreat (vector threatPos) |
Calculates cos of angle between cover direction and threat direction, in XZ plane. | |
Public Attributes | |
vector | m_vCoverPos |
vector | m_vCoverTallestPos |
vector | m_vCoverDirXZ |
int | m_iTileX |
int | m_iTileY |
int | m_iCoverId |
Static Protected Member Functions | |
static ChimeraCoverManagerComponent | GetCoverManager () |
Holds data about a cover point.
Performs automatic release of cover point upon its destruction.
Work flow when searching for covers:
void SCR_AICoverLock.SCR_AICoverLock | ( | int | tilex, |
int | tiley, | ||
int | coverId, | ||
vector | coverPos, | ||
vector | coverTallestPos | ||
) |
void SCR_AICoverLock.~SCR_AICoverLock | ( | ) |
float SCR_AICoverLock.CosAngleToThreat | ( | vector | threatPos | ) |
Calculates cos of angle between cover direction and threat direction, in XZ plane.
|
staticprotected |
vector SCR_AICoverLock.GetPosition | ( | ) |
bool SCR_AICoverLock.IsValid | ( | ) |
Returns true if cover position is not zero.
void SCR_AICoverLock.Release | ( | ) |
Unlocks the cover and invalidates it.
int SCR_AICoverLock.m_iCoverId |
int SCR_AICoverLock.m_iTileX |
int SCR_AICoverLock.m_iTileY |
vector SCR_AICoverLock.m_vCoverDirXZ |
vector SCR_AICoverLock.m_vCoverPos |
vector SCR_AICoverLock.m_vCoverTallestPos |