Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::ChangeParameter Method
Syntax
C++
int ChangeParameter(IFunctionHandler * pH);
Parameters 
Description 
entityId - entity id</param 
!  
paramEnum - the parameter to change, should be one of the following: ! AIPARAM_SIGHTRANGE - sight range in (meters). ! AIPARAM_ATTACKRANGE - attack range in (meters). ! AIPARAM_ACCURACY - firing accuracy (real [0..1]). ! AIPARAM_AGGRESION - aggression (real [0..1]). ! AIPARAM_GROUPID - group id (integer). ! AIPARAM_FOV_PRIMARY - primary field of vision (degrees). ! AIPARAM_FOV_SECONDARY - pheripheral field of vision (degrees). ! AIPARAM_COMMRANGE - communication range (meters). ! AIPARAM_FWDSPEED - forward speed (vehicles only). ! AIPARAM_RESPONSIVENESS - responsiveness (real). ! AIPARAM_SPECIES - entity species (integer). ! AIPARAM_TRACKPATTERN - track pattern name (string). ! AIPARAM_TRACKPATTERN_ADVANCE - track pattern advancing (0 = stop, 1 = advance).</param 
!  
paramValue 
new parameter value, see above for type and meaning. 

!

AI.ChangeParameter( entityId, paramEnum, paramValue )

! Changes an enumerated AI parameter.!  

 

Copyright (c) 2012. All rights reserved.