HorseSaveToDatabase

From NWN Lexicon
Jump to: navigation, search


HorseSaveToDatabase(object, string)

Save party horses.

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



author: Proleric, editor: Mistress