Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
GetGroupMember
Syntax
C++
int GetGroupMember(IFunctionHandler * pH);
Parameters 
Description 
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) 

 

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

returns the idx-th entity in the given group

Copyright (c) 2012. All rights reserved.