UT QuickMove

From Dragon Age Toolset Wiki
Jump to: navigation, search

This function quickly moves a creature to a location.

void UT_QuickMove(
string sTag,
string sWP = "0",
int bRun = FALSE,
int bFollowPath = FALSE,
int bNewHome = TRUE,
int bStaticCommand = FALSE
);
Parameters:
sTag
The tag of the creature that will be moved
sWP
The string of the waypoint it will move to. By default it is "mp_[sTag]_0". If a number is passed then it moves the object to "_#".
bRun
Indicates whether the creature will walk or run. By default it's walk.
bFollowPath
Uses CommandMoveToMultiLocations. If a numbered waypoint is specified, the creature will move to each waypoint in turn until the specified waypoint is reached.
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
(for plot critical movements) If this is TRUE the movement commands will be static (not cleared by a standard ClearAllCommands)
Returns:

Nothing.

Source:

Core Resources.utility_h

Description

Moves a creature to the location of the specified waypoint, or along a path if a number is given and bFollowPath is TRUE.


See also

UT_QuickMoveObject