Parameters |
Description |
entityId |
entity id |
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). |
paramValue |
new parameter value, see above for type and meaning. |
Syntax: AI.ChangeParameter( entityId, paramEnum, paramValue )
Changes an enumerated AI parameter.
Copyright (c) 2012. All rights reserved.
|