UT LocalJump

From Dragon Age Toolset Wiki
Jump to: navigation, search

Makes someone jump to a specified waypoint within the same area

void UT_LocalJump(
object oTarg,
string sWP = "",
int nJumpImmediately = TRUE,
int bNewHome = TRUE,
int bStaticCommand = FALSE,
int bJumpParty = FALSE
);
Parameters:
oTarg
The object that is going to jump someplace.
sWP
If the string is a # then oTarg will go to "jp_<OBJTAG>_#". If sWP is blank it defaults to 0. If something other than a # is here, then that is the string of the destination waypoint. NOTE: If the waypoint string starts with a number, it will be treated as a number not a string.
nJumpImmediately
If TRUE, forces the jump to the front of the action queue.
bNewHome
By default a creature's new "Home" is updated when you tell them to move someplace. Set this to FALSE if you want to keep their home point as is.
bStaticCommand
the command will not be cleared by a standard WR_ClearAllCommands
bJumpParty
[Undocumented]
Returns:

Nothing.

Source:

Core Resources.utility_h

Description

This should be used only for area/stage setup - arranging creatures for a certain encounter beforehand. This should NOT be used for any instances in which the user can witness the jump. Note that this function should be used only for jumps within the same area.