Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::GetGroupMember Method
Syntax
C++
int GetGroupMember(IFunctionHandler* pH);
Parameters 
Description 
entityId|groupId 
AI's entity id group id 
idx 
index (1..N) 
flags 
combination of following flags: ! GROUP_ALL - Returns all agents in the group (default). ! GROUP_ENABLED - Returns only the count of enabled agents (exclusive with all). 
type 
allows to filter to return only specific AI objects by type (cannot be used in together with GROUP_MAX flag). 

script handler of idx-th entity (null if idx is out of range)

!

AI.GetGroupMember( entityId|groupId, idx, flags, type)

! returns the idx-th entity in the given group.!  

!  

!  

!  

!  

 

Copyright (c) 2012. All rights reserved.