Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::CheckMeleeDamage Method
Syntax
C++
int CheckMeleeDamage(IFunctionHandler * pH);
Parameters 
Description 
entityId 
AI's entity id 
targetId 
AI's target entity id 
radius 
max distance in 2d to target 
minheight 
min distance in height 
maxheight 
max distance in height 
angle 
FOV to include target 

(distance,angle) pair between entity and target (degrees) if melee is possible, nil otherwise

!

AI.CheckMeleeDamage(entityId, targetId, radius, minheight, maxheight, angle)

! returns 1 if the AI performing melee is actually hitting target.!  

!  

!  

!  

!  

!  

!  

CheckMeleeDamage

Copyright (c) 2012. All rights reserved.