![]() |
VR Interaction Framework v2.0
|
This is an example of how to spawn ammo depending on the weapon that is equipped in the opposite hand. More...
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 |
This is an example of how to spawn ammo depending on the weapon that is equipped in the opposite hand.
|
virtual |
| GameObject BNG.AmmoDispenser.GetAmmo | ( | ) |
| void BNG.AmmoDispenser.GrabAmmo | ( | Grabber | grabber | ) |
| GameObject BNG.AmmoDispenser.AmmoDispenserObject |
Disable this if weapon not equipped.
| int BNG.AmmoDispenser.CurrentPistolClips = 5 |
Amount of Pistol Clips currently available.
| int BNG.AmmoDispenser.CurrentRifleClips = 5 |
| int BNG.AmmoDispenser.CurrentShotgunShells = 30 |
| Grabber BNG.AmmoDispenser.LeftGrabber |
Used to determine if holding a weapon.
| GameObject BNG.AmmoDispenser.PistolClip |
Instantiate this if pistol equipped.
| GameObject BNG.AmmoDispenser.RifleClip |
Instantiate this if shotgun equipped.
| Grabber BNG.AmmoDispenser.RightGrabber |
Used to determine if holding a weapon.
| GameObject BNG.AmmoDispenser.ShotgunShell |
Instantiate this if shotgun equipped.