PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup Class Reference

This script replaces RFPS's weapon pickup script. More...

Inheritance diagram for PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup:
Collaboration diagram for PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup:

Public Member Functions

void PickUpItem ()
 

Public Attributes

bool allowMultiple = true
 If true, the player can add copies of this weapon to inventory. More...
 
AudioClip pickupSound
 The sound to play when picking up the weapon. More...
 
AudioClip fullSound
 The sound to play when ammo is full. More...
 
bool moveToSkillbarOnPickup = false
 Move immediately to the skillbar on pickup. More...
 
Texture2D weaponPickupReticle
 The weapon pickup reticle texture. More...
 
int weaponNumber = 0
 The weapon number, which is the index in PlayerWeapons.weaponOrder. More...
 

Detailed Description

This script replaces RFPS's weapon pickup script.

It also updates S-Inventory. The player can pick up multiple copies of a weapon if Allow Multiple is ticked. Unlike the RFPS WeaponPickup script, this script does not add ammo if the player already has the weapon.

Member Function Documentation

◆ PickUpItem()

void PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup.PickUpItem ( )

Member Data Documentation

◆ allowMultiple

bool PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup.allowMultiple = true

If true, the player can add copies of this weapon to inventory.

◆ fullSound

AudioClip PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup.fullSound

The sound to play when ammo is full.

◆ moveToSkillbarOnPickup

bool PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup.moveToSkillbarOnPickup = false

Move immediately to the skillbar on pickup.

◆ pickupSound

AudioClip PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup.pickupSound

The sound to play when picking up the weapon.

◆ weaponNumber

int PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup.weaponNumber = 0

The weapon number, which is the index in PlayerWeapons.weaponOrder.

◆ weaponPickupReticle

Texture2D PixelCrushers.DialogueSystem.SInventory.SInventoryWeaponPickup.weaponPickupReticle

The weapon pickup reticle texture.


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