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

Syntax: 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

Copyright (c) 2012. All rights reserved.