Third Person Cover Shooter
1.6
|
Takes commands from other components and turns a flashlight on and off depending on a situation. More...
Public Member Functions | |
void | ToTakeFlashlight () |
Registers a command to take out a flashlight. More... | |
void | ToHideFlashlight () |
Registers a command to hide a flashlight if taken out. More... | |
void | ToTurnOnLight () |
Registers a command to turn on light on the currently equipped item. More... | |
void | ToLight () |
Registers a command to equip a flashlight and turn it on. More... | |
void | ToUnlight () |
Registers a command to turn off light. More... | |
void | OnEnterDarkness (DarkZone zone) |
Notified of an entrance to a dark area. More... | |
void | OnLeaveDarkness (DarkZone zone) |
Notified of an exit out of a dark area. More... | |
Public Member Functions inherited from CoverShooter.AIBase | |
void | Message (string name) |
Sends a message to other components. More... | |
void | Message (string name, object value) |
Sends a message to other components. More... | |
Protected Member Functions | |
override void | Awake () |
Protected Member Functions inherited from CoverShooter.AIItemBase | |
bool | EquipWeapon (CharacterMotor motor) |
Equips any weapon if possible. More... | |
bool | Equip (CharacterMotor motor, WeaponType type) |
Equips a weapon of specific kind if possible. More... | |
bool | Equip (CharacterMotor motor, ToolType tool) |
Equips a specific tool if possible. More... | |
bool | UnequipWeapon (CharacterMotor motor) |
Unequips the item if it is currently used. More... | |
bool | Unequip (CharacterMotor motor, WeaponType type) |
Unequips the item if it is currently used. More... | |
bool | Unequip (CharacterMotor motor, ToolType tool) |
Unequips the item if it is currently used. More... | |
Additional Inherited Members | |
Public Attributes inherited from CoverShooter.AIItemBase | |
InventoryUsage | InventoryUsage = InventoryUsage.autoFind |
How should the character inventory (if there is one) be used. More... | |
int | InventoryIndex = 0 |
Weapon index inside the inventory to use when usage is set to 'index'. More... | |
Takes commands from other components and turns a flashlight on and off depending on a situation.
|
protectedvirtual |
Reimplemented from CoverShooter.AIItemBase.
void CoverShooter.AIFlashlight.OnEnterDarkness | ( | DarkZone | zone | ) |
Notified of an entrance to a dark area.
void CoverShooter.AIFlashlight.OnLeaveDarkness | ( | DarkZone | zone | ) |
Notified of an exit out of a dark area.
void CoverShooter.AIFlashlight.ToHideFlashlight | ( | ) |
Registers a command to hide a flashlight if taken out.
void CoverShooter.AIFlashlight.ToLight | ( | ) |
Registers a command to equip a flashlight and turn it on.
Will turn on the light on a weapon if present.
void CoverShooter.AIFlashlight.ToTakeFlashlight | ( | ) |
Registers a command to take out a flashlight.
Ignored if currently equipped weapon already has a flashlight attached.
void CoverShooter.AIFlashlight.ToTurnOnLight | ( | ) |
Registers a command to turn on light on the currently equipped item.
void CoverShooter.AIFlashlight.ToUnlight | ( | ) |
Registers a command to turn off light.