Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::SetSmartObjectState Method
Syntax
C++
int SetSmartObjectState(IFunctionHandler* pH);
Parameters 
Description 
entityId 
entity id 
stateName 
name of the new state (i.e. "Idle") 

!

AI.SetSmartObjectState( entityId, stateName )

! Sets only one single smart object state replacing all other states.!  

!  

 

Copyright (c) 2012. All rights reserved.