Parameters |
Description |
entityId |
AI's entity id |
AIAnchorType |
Anchor type; see Scripts/AIAnchor.lua for a complete list of Anchor types available |
maxDist |
search range |
Syntax: AI.GetDirectAttackPos(entityId, searchRange, minAttackRange)
Returns a cover point which can be used to directly attack the attention target. Useful for choosing attack position for RPGs and such. Returns nil if no attack point is available.
Calling the function is quite heavy since it does raycasting.
Copyright (c) 2012. All rights reserved.
|