HorsePreloadAnimations(object)

Preload horse animations.

void HorsePreloadAnimations(
    object oPC
);

Parameters

oPC

The player character for whom horse animations will be preloaded.


Description

The mount and dismount animations are rather complex. By default, the Aurora engine does not always preload them. This function was created to temporarily set the tail and appearance of a PC to that of one of the horse models to force preloading of the animations. After that is done the animations should play properly. This is a good function to call in the OnEnter script of the module or similar location.



Remarks

This function is used by the Bioware script x3_mod_def_enter. You probably won't need it unless you're re-writing that script.


Requirements

#include "x3_inc_horse"

Version

1.69

Example

// Sample OnClientEnter script. See x3_mod_def_enter for full context.
#include "x3_inc_horse"


void main()
{
  object oPC = GetEnteringObject();
  
  HorsePreloadAnimations(oPC);
}

See Also

functions:  HorseAddHorseMenu
categories:  Horse Functions


author: Proleric, editor: Mistress