Area Transition Target on Generic Triggers

For toolset tutorials as well as question and answers.
Locked
Zelknolf
Chosen of Forumamus, God of Forums
Posts: 6139
Joined: Tue Jul 05, 2005 7:04 pm

Area Transition Target on Generic Triggers

Post by Zelknolf »

A thing we discovered while trying to debug Moonshaes' recent problems (which turned out to be a red herring there, but good for other things anyway)--

Apparently, GetAreaTransitionTargetObject works on things which aren't area transitions, and ACR_Candlekeep also easily reads and charts them (unintentional feature, but handy anyway). Obviously, this didn't go into the documentation about the new Chooser/Creator because it wasn't really something we were trying to accomplish. More a side effect of one of NWScripts rarely-beneficial quirks.

So, if you have those rickety bridges or trap doors that plunge into the abyss, I would recommend using the trigger's Area Transition Target setting to configure the destination of those traps, so the Chooser can find them and add the destination to your adjacent areas list. (even if they're not actually driving the functionality, setting the AT target will still add the destination to the adjacent areas list in your chooser).

// edit-- also, this means you can drop generic triggers with AT targets in the corner of an area full of portals to make the portals' target areas list as adjacent.
Locked