HorseSaveToDatabase(object, string)

Save party horses.

void HorseSaveToDatabase(
    object oPC,
    string sDatabase
);

Parameters

oPC

The PC to be saved.

sDatabase

The database name.


Description

This will save all of the current horse system status for the PC and their henchmen.



Remarks

This function is provided for use with persistent worlds (PW).

As with all database functions, the script may well need fine-tuning to suit a particular PW.


Requirements

#include "x3_inc_horse"

Version

1.69

Example

// X3_HORSE_DATABASE contains the system default data base name.

#include "x3_inc_horse"


void main()
{
  object oPC = GetPCSpeaker(); 
  
  HorseSaveToDatabase(oPC, X3_HORSE_DATABASE);
}

See Also

functions:  HorseReloadFromDatabase
categories:  Horse Functions


author: Proleric, editor: Mistress