HorseGetIsAMount

From NWN Lexicon


Contents

[edit] HorseGetIsAMount(object)

Check whether a creature is a mount.

[edit] Parameters

oTarget

The creature to be checked.


[edit] Description

This will return TRUE if the target is a mountable creature.



[edit] Remarks

The fact that a creature is mountable does not necessarily mean that anyone can ride it.

Use HorseGetCanBeMounted to test whether a potential rider is eligible.


[edit] Known Bugs

None


[edit] Requirements

#include " x3_inc_horse "

[edit] Version

1.69

[edit] Example

// Called from a conversation.  oPC will check to see if oHorse is a horse.
//  If it is, time to mount up and go for a ride. 
 
#include "x3_inc_horse"
void main()
{
  object oPC = GetPCSpeaker(); 
  object oHorse = GetObjectByTag("tag of an existing horse");
 
  if(HorseGetIsAMount(oHorse))
  {
    AssignCommand(oPC, HorseMount(oHorse));
  }
}

[edit] See Also

functions: 

HorseMount



author: Proleric, editor: Mistress

Personal tools
Categories