Next: Nav Module, Previous: Hitscan Module, Up: AI [Contents][Index]
This component allows the player to select/deselect an AI and give it direct move orders with the mouse. To use it effectively, we recommend pairing it with a NavModule and attaching some sort of combat AI system to it such as a ’Hitscan Module’
LayerMask
clickMaskLayer mask indicating what we can click against
string
deselectionTagWhen clicked, objects of this tag will cause deselection. Send the ’Select’ message to this object to select it
string
movableTagWhen clicked with ’moveButton’, will cause a move order to be issued
List<string>
attackableTagsTags of objects we like to hunt
Default value: new List<string>()
int
moveButtonMouse button to use for movement, 0 = left, 1 = right, 2 = middle
Default value: 1
int
selectButtonMouse button to use to select for direct-click selection
Default value: 0
GameObject
selectionIndicatorAn object, parented to this one, which indicates selection when active (Like a health bar, or something glowy)
float
initialMoveDistanceHow far we should move forward when spawned
Default value: 3.0f
List<MonoBehaviour>
disabledWhileSelectedList of objects to disable when we’re selected
Default value: new List<MonoBehaviour>()
Causes this Minion Module to become selected, ready to receive orders from mouse events.
Causes this Minion Module to become deselected, no longer able to receive orders from mouse events.
LayerMask
clickMaskLayer mask indicating what we can click against
string
deselectionTagWhen clicked, objects of this tag will cause deselection. Send the ’Select’ message to this object to select it
string
movableTagWhen clicked with ’moveButton’, will cause a move order to be issued
List<string>
attackableTagsTags of objects we like to hunt
Default value: new List<string>()
int
moveButtonMouse button to use for movement, 0 = left, 1 = right, 2 = middle
Default value: 1
int
selectButtonMouse button to use to select for direct-click selection
Default value: 0
GameObject
selectionIndicatorAn object, parented to this one, which indicates selection when active (Like a health bar, or something glowy)
float
initialMoveDistanceHow far we should move forward when spawned
Default value: 3.0f
List<MonoBehaviour>
disabledWhileSelectedList of objects to disable when we’re selected
Default value: new List<MonoBehaviour>()
Causes this Minion Module to become selected, ready to receive orders from mouse events.
Causes this Minion Module to become deselected, no longer able to receive orders from mouse events.
Next: Nav Module, Previous: Hitscan Module, Up: AI [Contents][Index]