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

!

AI.GetUnitCount( entityId, unitProperties )

! Gets the number of units the leader knows about. ! The leader will be found based on the group id of the entity. ! !  

!

Copyright (c) 2012. All rights reserved.