generated from Jaysyn/ModuleTemplate
18 lines
430 B
Plaintext
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()));
|
|
|
|
}
|
|
|