HorseGetIsMounted
From NWN Lexicon
Contents |
[edit] HorseGetIsMounted(object)
Check if a creature is mounted.
int HorseGetIsMounted( object oTarget );
[edit] Parameters
oTarget
The creature to be checked.
[edit] Description
This function will return TRUE if the target is mounted.
[edit] Requirements
#include " x3_inc_horse "
[edit] Version
1.69
[edit] Example
// Called from a conversation. If the player is currently mounted, have them dismount. #include "x3_inc_horse" // Dummy function that accepts an object and returns void, so that it can be assigned as an action. void ObjectWrapper(object oObject) { return; } void main() { object oPC = GetPCSpeaker(); if(HorseGetIsMounted(oPC)) { AssignCommand(oPC, ObjectWrapper(HorseDismount())); } }
[edit] See Also
functions: |
author: Proleric, editor: Mistress