GetCampaignDBLocation(object, string)
Get a campaign location on a player in the default database for this module.
location GetCampaignDBLocation( object oPC, string sVarname );
Parameters
oPC
Player this variable is attached to.
sVarname
Name of the variable to search for.
Description
Get a campaign location on a player in the default database for this module.
Remarks
This is a wrapper for GetCampaignLocation. It sends GetCampaignDBName as the first parameter.
Requirements
#include "x0_i0_campaign"
Version
???
Example
// Send the calling object to their saved home location, if they have one. #include "x0_i0_campaign" void main() { location lSpot = GetCampaignDBLocation(OBJECT_SELF, "HOME_LOC"); // Validate that we have a good location to move to. if(OBJECT_INVALID != GetAreaFromLocation(lSpot)) { // Move 'em. AssignCommand(OBJECT_SELF, ActionJumpToLocation(lSpot)); } }
See Also
functions: | GetCampaignLocation | SetCampaignDBLocation |
categories: | Database Functions |
author: Baragg, editor: Mistress