SetTransitionTarget(object, object)

From NWN Lexicon
Revision as of 08:21, 31 March 2018 by Shadguy (talk | contribs) (Added a missing page for NWNEE)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.
Sets the transition target for oTransition.
object SetTransitionTarget(
    object oTransition, 
    object oTarget


Sets the transition target for oTransition. - oTransition can be any valid game object, except areas. - oTarget can be any valid game object with a location, or OBJECT_INVALID (to unlink). - Rebinding a transition will NOT change the other end of the transition; for example, with normal doors you will have to do either end separately. - Any valid game object can hold a transition target, but only some are used by the game engine (doors and triggers). This might change in the future. You can still set and query them for other game objects from nwscript. - Transition target objects are cached: The toolset-configured destination tag is used for a lookup only once, at first use. Thus, attempting to use SetTag() to change the destination for a transition will not work in a predictable fashion.


Information icon.png This section of the article is a stub. You can help the NWN Lexicon by expanding it.


1.74.8149 - Note that the description of this function was omitted from the PDF release notes. The function is described in a readme in the lang/<language>/docs directory delivered with Neverwinter Nights Enhanced Edition, and in the toolset script editor.


Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.

See Also

functions: DestroyArea CopyArea CreateArea

 author: Shadguy