This script replaces consumable pickup scripts such as HealthPickup. More...
Public Member Functions | |
void | PickUpItem () |
bool | CanConsume () |
void | Consume () |
Public Attributes | |
float | healthToAdd |
The health to add when using this item. More... | |
int | hungerToRemove |
The hunger to remove when using this item. More... | |
int | thirstToRemove |
The thirst to remove when using this item. More... | |
bool | destroyWhenConsumed = true |
If true , destroy the item when consumed. More... | |
bool | useOnPickup = false |
If true , use immediately when picking up this item. More... | |
AudioClip | pickupSound |
The sound to play when picking up this item. More... | |
AudioClip | fullSound |
The sound to play when health/hunger/thirst is full. More... | |
AudioClip | consumeSound |
bool | moveToSkillbarOnPickup = false |
Move immediately to the skillbar on pickup. More... | |
This script replaces consumable pickup scripts such as HealthPickup.
Use it for all health, hunger, and thirst pickups in place of RFPS's script. If you tick Use On Pickup, it will function just like RFPS's HealthPickup. If unticked, it will add the item to the inventory instead.
bool PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.CanConsume | ( | ) |
void PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.Consume | ( | ) |
void PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.PickUpItem | ( | ) |
AudioClip PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.consumeSound |
bool PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.destroyWhenConsumed = true |
If true
, destroy the item when consumed.
AudioClip PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.fullSound |
The sound to play when health/hunger/thirst is full.
float PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.healthToAdd |
The health to add when using this item.
int PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.hungerToRemove |
The hunger to remove when using this item.
bool PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.moveToSkillbarOnPickup = false |
Move immediately to the skillbar on pickup.
AudioClip PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.pickupSound |
The sound to play when picking up this item.
int PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.thirstToRemove |
The thirst to remove when using this item.
bool PixelCrushers.DialogueSystem.SInventory.SInventoryConsumablePickup.useOnPickup = false |
If true
, use immediately when picking up this item.