VR Interaction Framework v2.0
Loading...
Searching...
No Matches
BNG.AmmoDispenser Class Reference

This is an example of how to spawn ammo depending on the weapon that is equipped in the opposite hand. More...

Inheritance diagram for BNG.AmmoDispenser:

Public Member Functions

GameObject GetAmmo ()
 
void GrabAmmo (Grabber grabber)
 
virtual void AddAmmo (string AmmoName)
 

Public Attributes

Grabber LeftGrabber
 Used to determine if holding a weapon.
 
Grabber RightGrabber
 Used to determine if holding a weapon.
 
GameObject AmmoDispenserObject
 Disable this if weapon not equipped.
 
GameObject PistolClip
 Instantiate this if pistol equipped.
 
GameObject ShotgunShell
 Instantiate this if shotgun equipped.
 
GameObject RifleClip
 Instantiate this if shotgun equipped.
 
int CurrentPistolClips = 5
 Amount of Pistol Clips currently available.
 
int CurrentRifleClips = 5
 
int CurrentShotgunShells = 30
 

Detailed Description

This is an example of how to spawn ammo depending on the weapon that is equipped in the opposite hand.

Member Function Documentation

◆ AddAmmo()

virtual void BNG.AmmoDispenser.AddAmmo ( string  AmmoName)
virtual

◆ GetAmmo()

GameObject BNG.AmmoDispenser.GetAmmo ( )

◆ GrabAmmo()

void BNG.AmmoDispenser.GrabAmmo ( Grabber  grabber)

Member Data Documentation

◆ AmmoDispenserObject

GameObject BNG.AmmoDispenser.AmmoDispenserObject

Disable this if weapon not equipped.

◆ CurrentPistolClips

int BNG.AmmoDispenser.CurrentPistolClips = 5

Amount of Pistol Clips currently available.

◆ CurrentRifleClips

int BNG.AmmoDispenser.CurrentRifleClips = 5

◆ CurrentShotgunShells

int BNG.AmmoDispenser.CurrentShotgunShells = 30

◆ LeftGrabber

Grabber BNG.AmmoDispenser.LeftGrabber

Used to determine if holding a weapon.

◆ PistolClip

GameObject BNG.AmmoDispenser.PistolClip

Instantiate this if pistol equipped.

◆ RifleClip

GameObject BNG.AmmoDispenser.RifleClip

Instantiate this if shotgun equipped.

◆ RightGrabber

Grabber BNG.AmmoDispenser.RightGrabber

Used to determine if holding a weapon.

◆ ShotgunShell

GameObject BNG.AmmoDispenser.ShotgunShell

Instantiate this if shotgun equipped.


The documentation for this class was generated from the following file: