Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::RegisterInterestingEntity Method
Syntax
C++
int RegisterInterestingEntity(IFunctionHandler* pH, ScriptHandle entityId, float radius, float baseInterest, const char* actionName, Vec3 offset, float pause, int shared);
Parameters 
Description 
ScriptHandle entityId 
AI's entity id 

! true - if a valid update was performed ! nil - if not (Interest system is disabled, parameters not valid, etc) !

!

AI.RegisterInterestingEntity(entityId, baseInterest, category, aiAction)

! Registers the entity with the interest system. Any errors go to the error log.!  

!

Copyright (c) 2012. All rights reserved.