generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
46
_module/nss/oai_cust_hb.nss
Normal file
46
_module/nss/oai_cust_hb.nss
Normal file
@@ -0,0 +1,46 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Olander's AI
|
||||
// oai_cust_hb
|
||||
// by Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// Place your custom heartbeat requirements here.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
//Example
|
||||
/*
|
||||
ExecuteScript("blah_blah", OBJECT_SELF);
|
||||
*/
|
||||
|
||||
/******************************************************************************/
|
||||
//:: PLACE CUSTOM HEARTBEAT STUFF BELOW HERE
|
||||
|
||||
object oNPC = OBJECT_SELF;
|
||||
|
||||
//Olander's Pack Animals
|
||||
int nPA = GetLocalInt(oNPC,"PACKANIMAL");
|
||||
if(nPA == 1)
|
||||
{
|
||||
ExecuteScript("opa_pack_command", oNPC);
|
||||
return;
|
||||
}
|
||||
|
||||
//Olander's Horses
|
||||
int nHorse = GetLocalInt(OBJECT_SELF,"HORSE");
|
||||
if(nHorse == 1)
|
||||
{
|
||||
ExecuteScript("hor_hors_command", oNPC);
|
||||
return;
|
||||
}
|
||||
|
||||
//Check for Command Mode in Allegiance System
|
||||
int nSquad = GetLocalInt(oNPC,"OAS_SQUAD");
|
||||
if(nSquad == 1)
|
||||
{
|
||||
ExecuteScript("oas_sqd_command", oNPC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user