Aschbourne_PRC8/_module/nss/mk_on_mount.nss
Jaysyn904 903f023230 Major update
Created top hak for crafting dialog.  Moved Bioware creature abilities to top hak.  Fixed DMFI wand handouts.  Added DMFI language handouts.  Added CCOH 6.  Disabled PC corpse system.  Modified new player startup system.  Full compile.  Updated release archive.
2024-09-17 13:24:57 -04:00

23 lines
653 B
Plaintext

// mk_on_mount.nss
#include "mk_inc_exec"
// this script is called by the CCOH horse system to verify
// if mounting horse is allowed at the moment.
//
// Provide TRUE as a parameter to MK_EXEC_INT_SetReturnValue(int nReturn)
// to allow mounting or provide FALSE to disallow mounting
void main()
{
SendMessageToPC(OBJECT_SELF, "*** script \"mk_on_mount\" called ***");
// MK_EXEC_INT_SetReturnValue(TRUE);
int nReturn = !GetIsAreaInterior(GetArea(OBJECT_SELF));
if (!nReturn)
{
if (GetIsPC(OBJECT_SELF))
SendMessageToPC(OBJECT_SELF, GetStringByStrRef(112003));
}
MK_EXEC_INT_SetReturnValue(nReturn);
}