Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::SetLeader Method
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

!

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. ! !  

!  

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

Copyright (c) 2012. All rights reserved.