Rune_PRC8/_module/nss/j_ai_setweapons.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

30 lines
1.2 KiB
Plaintext

/************************ [Set Weapons] ****************************************
Filename: j_ai_setweapons
************************* [Set Weapons] ****************************************
Executed to re-set any weapons, or set them at spawn, using ExecuteScript.
It isn't included in the generic AI or onspawn to try and speed it up a little
************************* [History] ********************************************
1.3 - Added to a new file, removed from spawn include.
************************* [Workings] *******************************************
It can be easily re-added to the spawn include, however, the generic AI calls
it so little, that it may well be useful to keep a seperate file anyway.
************************* [Arguments] ******************************************
Arguments: RESET_HEALING_KITS
************************* [Set Weapons] ***************************************/
#include "j_inc_setweapons"
void main()
{
if(GetAIInteger(RESET_HEALING_KITS))
{
ResetHealingKits(OBJECT_SELF);
DeleteAIInteger(RESET_HEALING_KITS);
}
else
{
// Set weapons if not
SetWeapons(OBJECT_SELF);
}
}