Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
GetGroupAveragePosition
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_* 
returnPos 
returned average position 

Syntax: AI.GetGroupAveragePosition( entityId, properties, returnPos ) 

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

Copyright (c) 2012. All rights reserved.