Difference between revisions of "EVENT TYPE WORLDMAP PRETRANSITION"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(expanding with info from the map tutorial)
(remove redundant category)
Line 25: Line 25:
  
 
[[Category:Map events|WORLDMAP_PRETRANSITION]]
 
[[Category:Map events|WORLDMAP_PRETRANSITION]]
[[Category: Module events|WORLDMAP_PRETRANSITION]]
 
[[Category: Event types|WORLDMAP_PRETRANSITION]]
 

Revision as of 00:58, 12 February 2010

The documentation on this page is incomplete, obsolete, or otherwise in need of a thorough review. The current content may provide a good starting point for this, but do not rely on its accuracy when using it to design content.

Source:
script.ldf
Sent when:
Game begins the map trail animation
Sent from:
Sent to:
module
Parameters:
None.

Usage

case EVENT_TYPE_WORLDMAP_PRETRANSITION:
{

// insert event-handling code here

break;
}

Remarks

This is where you want to call UT_DoAreaTransition(); the level will begin loading in the background as the map trail animation plays.

Note that since this event doesn't have parameters attached to it, you'll need to get the target area and waypoint tags from some other source. The main campaign manages this via the WM_STORED_AREA and WM_STORED_WP module local variables. For example:

case EVENT_TYPE_WORLDMAP_PRETRANSITION:
{
    string sArea = GetLocalString(GetModule(), "WM_STORED_AREA"); //retrieve the target area tag stored in EVENT_TYPE_BEGIN_TRAVEL
    string sWP = GetLocalString(GetModule(), "WM_STORED_WP"); //retrieve the target waypoint tag
    UT_DoAreaTransition(sArea, sWP); //execute the area transition to that target.
    break;
}