Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::GetGroupAveragePosition Method
Syntax
C++
int GetGroupAveragePosition(IFunctionHandler * pH);
Parameters 
Description 
entityId 
AI's entity id which group/leader is determined 
unitProperties 
binary mask of unit properties type for which the attack is requested ! (in the form of UPR_* + UPR* i.e. UPR_COMBAT_GROUND + UPR_COMBAT_FLIGHT) ! see IAgent.h for definition of unit properties UPR_* 

Pos returned average position

!

AI.GetGroupAveragePosition( entityId, properties, returnPos )

! gets the average position of the (leader's) group members!  

!  

!

Copyright (c) 2012. All rights reserved.