|
Tiberian Technologies Scripts Reference Revision: 9000
|
This script makes the AI hunt down the nearest enemy, it works for infantry and vehicles \HuntSearchDistance - Distance to scan for players to magically find and move to, -1 means infinite range \HuntSpeed - Speed at which the bot moves once its moving to a player \HuntArriveDistance - Distance at which to arrive from the player \RandomHuntArriveDistance - Random amount to arrive from the player \HuntStealth - Can the bot magically know where invisible players are \AttackSpeed - Speed to move at once an attack is begun \AttackDistance - Distance to arrive from a target when attacking, -1 uses the weapon effective distance \RandomAttackDistance - Random amount to add or subtract from the Attack distance \ReturnHome - Return to the create location when the action completes? (If wanderpoints are enabled this will never be used) \ReturnHomeSpeed - Speed to move at when going home \WanderingAIGroupID - Group of wander points to use when nothing else is going on \WanderSpeed - Speed to move at between the points \CanSeeStealth - Can the AI see stealth targets? 0 = No at all, 1 is within the ranges set in LE globals file, 2 means it can see stealth everywhere, think of stock AI. \ShutdownEngineOnArrival - Used for vehicles, turn on if you have issues with your vehicle rolling away from its move positions after it arrives \AttackCheckBlocked - Defines whether they should check if they can actually hit the player before shooting \MaxSightRangeFromHome - Maximum range the AI can see from its nearest wander point/home location, useful to keep them from wandering off after a trail of enemies, 0 to not use \WanderDistanceOverride - Overrides the default wander arrive distance (1 meter for infantry and 5 for vehicles) \ChangeWanderGroupCustom - If this custom is received the wander group will be set to the param, -1 param to disable the wander group code \ChangeWanderSpeedCustom - If this custom is received the wander speed will be updated to the param/100 \ChangeHuntDistanceCustom - If this custom is received the hunt range will be updated to the param/100 (-1 means infinite range) \ChangeHuntSpeedCustom - If this custom is received the hunt speed will be updated to the param/100 \ChangeReturnHomeSpeedCustom - If this custom is received the return home speed will be updated to the param/100 \ChangeMaxSightFromHomeLocationCustom - If this custom is received the AI won't be able to see targets past the specified range of the param/100, 0 means don't use \ChangeAttackSpeedCustom - If this custom is received the attack speed will be updated to the param/100 \ChanceToInvestigateLastSeenLocation - The percent chance (0.0-1.0) of checking out the last spot an enemy/target was seen. More...
#include <jmgUtility.h>