Difference between revisions of "EVENT TYPE BEGIN TRAVEL"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (|sourcefile=script.ldf)
(update template)
Line 4: Line 4:
 
|from={{undocumented}}
 
|from={{undocumented}}
 
|to= [[module]]
 
|to= [[module]]
 +
|tocategory1=module
 +
|sortkey=BEGIN_TRAVEL
 
|int0name=nSourceTerrain
 
|int0name=nSourceTerrain
 
|int0desc={{undocumented}}
 
|int0desc={{undocumented}}
Line 20: Line 22:
 
}}
 
}}
  
 
[[Category:Event types|BEGIN_TRAVEL]]
 
 
[[Category:Maps]]
 
[[Category:Maps]]

Revision as of 16:50, 6 August 2009

Source:
script.ldf
Sent when:
[Undocumented]
Sent from:
[Undocumented]
Sent to:
module
Parameters:
  • Integer 0: [Undocumented]
  • Integer 1: [Undocumented]
  • Integer 2: [Undocumented]
  • String 0: area tag source location
  • String 1: area tag target location
  • String 2: waypoint tag override
  • Object 0: source location object

Usage

case EVENT_TYPE_BEGIN_TRAVEL:
{
int nSourceTerrain = GetEventInteger(ev, 0); // [Undocumented]
int nTargetTerrain = GetEventInteger(ev, 1); // [Undocumented]
int nWorldMap = GetEventInteger(ev, 2); // [Undocumented]
string sSource = GetEventString(ev, 0); // area tag source location
string sTarget = GetEventString(ev, 1); // area tag target location
string sWPOverride = GetEventString(ev, 2); // waypoint tag override
object oSourceLocation = GetEventObject(ev, 0); // source location object

// insert event-handling code here

break;
}