Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
SetLeader
Syntax
C++
int SetLeader(IFunctionHandler * pH);
Parameters 
Description 
entityID 
entity (id) of which to which we want to associate a leader class 

true if the leader creation/association has been successful 

! Makes an entity a leader of the group @return 1 if succeeded

Syntax: AI.SetLeader( entityID ) 

Set the given entity as Leader (associating a CLeader object to it and creating it if it doesn't exist) Only one leader can be set per group

Copyright (c) 2012. All rights reserved.