Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
13
_module/nss/hchtf_fooddrinkp.nss
Normal file
13
_module/nss/hchtf_fooddrinkp.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
//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));
|
||||
}
|
||||
Reference in New Issue
Block a user