Energy Based Objects  2.01
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | Events
ObjectShootingPoint Class Reference

The base script from which objects can shoot from. More...

Inheritance diagram for ObjectShootingPoint:
ObjectPusher ObjectRaycastTurret ObjectSpawnerPusher

List of all members.

Public Member Functions

virtual void Shoot ()
virtual void Load ()
bool CheckCanShootFunctions ()

Static Public Member Functions

static Vector3 GetRandomDirection (float scale)
static Vector3 GetRandomDirection (Vector3 scale)

Public Attributes

bool autoShoot
 Automatically shoot.
bool autoLoadOnShoot = true
 Automatically load when you shoot.
bool autoLoad
 Automatically load.
float shootDelay = .25f
 Delay between each shot.
float shootTime
 Time left until you can shoot again.
int loadLimit = 1
 How many times you can load the weapon.
int loadCount
 How many times you have loaded the weapon.
float loadDelay
 Delay between loading.
float loadTime
 Time left until you can load again.
int minLoadCountToShoot
 Load this amount of times before allowing the weapon to shoot.
bool shootOnLoadTimerZero = true
 If the loadTime is above zero, don't shoot.
bool resetLoadTimeOnShoot
 Reset loadTime to zero when shot.

Properties

bool shotLoaded [get]
 Has the weapon been loaded.
bool isShootTimerZero [get]
 Is shootTime zero.
bool isLoadTimerZero [get]
 Is loadTime zero.
bool isLoadCountAtMin [get]
 Is loadCount greater or equal to minLoadCountToShoot.
bool canLoad [get]
 Is this weapon ready to Load.

Events

Action< ObjectShootingPointOnWeaponShoot
 Called when the weapon is shot Requires ObjectShootPoint as a parameter.
Action< ObjectShootingPointOnWeaponLoad
 Called when the weapon is loaded Requires ObjectShootPoint as a parameter.
Action OnWeaponShoot_NoParameters
 Called when the weapon is shot.
Action OnWeaponLoad_NoParameters
 Called when the weapon is loaded.
Func< bool > CanShoot
 Acts as an array of functions/delegates to check if this weapon can shoot It is only checked when loading the weapon.

Detailed Description

The base script from which objects can shoot from.


Member Data Documentation

bool autoLoad

Automatically load.

bool autoLoadOnShoot = true

Automatically load when you shoot.

bool autoShoot

Automatically shoot.

int loadCount

How many times you have loaded the weapon.

float loadDelay

Delay between loading.

int loadLimit = 1

How many times you can load the weapon.

float loadTime

Time left until you can load again.

Load this amount of times before allowing the weapon to shoot.

Reset loadTime to zero when shot.

float shootDelay = .25f

Delay between each shot.

bool shootOnLoadTimerZero = true

If the loadTime is above zero, don't shoot.

float shootTime

Time left until you can shoot again.


Property Documentation

bool canLoad [get]

Is this weapon ready to Load.

bool isLoadCountAtMin [get]

Is loadCount greater or equal to minLoadCountToShoot.

bool isLoadTimerZero [get]

Is loadTime zero.

bool isShootTimerZero [get]

Is shootTime zero.

bool shotLoaded [get]

Has the weapon been loaded.


Event Documentation

Func<bool> CanShoot

Acts as an array of functions/delegates to check if this weapon can shoot It is only checked when loading the weapon.

Action<ObjectShootingPoint> OnWeaponLoad

Called when the weapon is loaded Requires ObjectShootPoint as a parameter.

Action OnWeaponLoad_NoParameters

Called when the weapon is loaded.

Action<ObjectShootingPoint> OnWeaponShoot

Called when the weapon is shot Requires ObjectShootPoint as a parameter.

Action OnWeaponShoot_NoParameters

Called when the weapon is shot.

 All Classes Namespaces Functions Variables Properties Events