Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::RegisterDamageRegion Method
Syntax
C++
int RegisterDamageRegion(IFunctionHandler* pH);
Parameters 
Description 
entityId 
owner entity id. 
radius 
If radius <= 0 then the region is disabled 

!

AI.RegisterDamageRegion(entityId, radius)

! ! Register a spherical region that causes damage (so should be avoided in pathfinding). ! Owner entity position is used as region center. Can be called multiple times, will just move ! update region position ! !  

!  

RegisterDamageRegion

Copyright (c) 2012. All rights reserved.