Files
Anphillia_PRC8/_module/nss/hchtf_fooddrinkp.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

14 lines
444 B
Plaintext

//hchtf_fooddrinkp (food or drink source placeable on used event)
//Put this script's code into a placeable's OnUsed event to make that item
//a food or drink source for the PC on use. (Ex: a water fountain)
//See htf_inc for details.
#include "hc_inc_htf"
void main()
{
int iHUNGERSYSTEM = GetLocalInt(GetModule(),"HUNGERSYSTEM");
if (iHUNGERSYSTEM)
UseFoodOrDrinkItem(GetLastUsedBy(),OBJECT_INVALID,GetTag(OBJECT_SELF));
}