Files
HeroesStone_PRC8/_module/nss/destroy_horse.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

18 lines
430 B
Plaintext

#include "x3_inc_horse"
// Have the caller dismount, then destroy the horse.
void DismountAndDestroy()
{
object oHorse = HorseDismount(FALSE);
DestroyObject(oHorse);
}
void main()
{
object oEnterer = GetEnteringObject();
// Check for a mounted arrival.
if ( HorseGetIsMounted(oEnterer) )
// Dismount and destroy the horse.
AssignCommand(oEnterer, DelayCommand(2.0, DismountAndDestroy()));
}