Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::GetUnitInRank Method
Syntax
C++
int GetUnitInRank(IFunctionHandler* pH);
Parameters 
Description 
rank 
rank position (the highest (1) if rank == nil or rank <=0) 

entity script table of the ranked unit

!

AI.GetUnitInRank( groupID [,rank] )

! Returns the entity in the group id in the given rank position, or the highest if rank == nil or rank <=0 ! the rank is specified in entity.Properties.nRank ! !  

!

Copyright (c) 2012. All rights reserved.