Holds data about a cover point. Performs automatic release of cover point upon its destruction.
Work flow when searching for covers:
- Find cover with SCR_AIFindCover node.
- The node assigns the found cover to CombatMoveState.
- SCR_AICoverLock automatically locks the cover through CoverManager.
- Move the AI to cover, and once he arrives, set m_bInCover=true in CombatMoveState.
- As long as m_bInCover is true, CombatMoveState.VerifyCurrentCover() will be actively validating that AI is still at that cover. The cover will be released when the AI is physically no longer there. Alternatively, SCR_AICoverLock will release the cover once it is destroyed.
Definition at line 19 of file SCR_AICoverLock.c.