EasyScan
Usage Overview
|
Scanner
Optional module that may be activated to allow this unit and its faction to be aware of other faction's units. More details on scanning module below. Targeting Optional module that allows this unit AI to make targeting decisions based on various criteria. More details on targeting below. |
Usage Overview
Buttons Hide/Show Scan Range - Will toggle whether or not the green range ring is visible in the scene view. Hide Hide/Show Targeting Range - Toggle whether or not targeting range rings are visible in the scene view. This includes and range properties from filters. 3D - Toggle range rings between 2D and 3D Pulse - In the scen view during play mode, will pulse scan and targeting range rings when they update. Unit List Script - Reference to the object with the master unit list: MF_EasyScan_UnitList Detectable - Indicates if this unit may be detected. Targetable - Indicated if this unit may be chosen as a target. Classification Faction - Which faction this unit belongs to. Class 1, Class 2, Role 1, Role 2 These are various ways to classify this unit for targeting purposes. These enum values may be customized to suit your project. Audio Scan Sound - The sound to play every time the scanner updates. Enemy Scan Sound - Will play when a new enemy target is detected. Neutral Scan Sound - Plays when a new neutral target is detected. Ally Scan Sound - Plays when a new ally target is detected. Unknown Scan Sound - Plays when a new unknown target is detected. New Target Sound - Will play when a new target is choosen. Lost Target Sound - Will play when having no target after previously having a target. Event Targets A list of other objects implementing IScanEvents interface that allows them to receive events from this script. See Tutorials for more information. |
Advanced AI Targeting
Filters Optional filters can be added to refine targeting strategy. Each one has drop-down menus to make comparisons of various attributes of the target. Filters can be marked as AND or OR. All checked filters must be passed to consider this target. (AND filters) At least one unchecked filter must be passed to choose this target. (OR filters) Filter Block Importance - Choose between Required and Preferred. Required - If no targets pass the filter block, no target will be chosen, including any currently selected target. Preferred - If no targets pass the filter block, then the filters will be ignored. |