GetCampaignDBLocation
From NWN Lexicon
Contents |
[edit] GetCampaignDBLocation(object, string)
Get a campaign location on a player in the default database for this module.
location GetCampaignDBLocation( object oPC, string sVarname );
[edit] Parameters
oPC
Player this variable is attached to.
sVarname
Name of the variable to search for.
[edit] Description
Get a campaign location on a player in the default database for this module.
[edit] Remarks
This is a wrapper for GetCampaignDBName as the first parameter.
[edit] Requirements
#include " x0_i0_campaign "
[edit] Version
???
[edit] 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)); } }
[edit] See Also
functions: |
author: Baragg, editor: Mistress