HorseAddHorseMenu(object)

Add the horse menu to a Player Character.

void HorseAddHorseMenu(
    object oPC
);

Parameters

oPC

The Player Character


Description

Add the horse menu to the PC. This is only needed for PCs that were not created using patch 1.69.



Remarks

This function will do nothing if the target is not a PC, or if the target already has the Mount Actions feat.

It will typically be called in the module's OnClientEnter script, and will rarely be required by modules using the default script x3_mod_def_enter (which calls it for you).

It adds the Mount Actions feat, which enables the radial menu. This is sufficient to allow the PC to own, assign, release, mount and dismount horses.

If the PC has no creature skin, the function adds a skin with this feat.

Otherwise, it adds the feat to the existing skin.


Requirements

#include "x3_inc_horse"

Version

1.69

Example

#include "x3_inc_horse"


void main()
{
    // Simplified OnClientEnter script.
    // See x3_mod_def_enter for a full working example.

    object oPC = GetEnteringObject();
    HorseAddHorseMenu(oPC);
}

See Also

functions:  HorseSetOwner | HorseReloadFromDatabase
categories:  Horse Functions


author: Proleric, editor: Mistress