Difference between revisions of "UT QuickMove"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(whoops, this version takes a tag. QuickMoveObject is the one that takes an object.)
 
Line 43: Line 43:
 
<!-- This section contains examples transcluded from the snippet library. -->
 
<!-- This section contains examples transcluded from the snippet library. -->
  
<!-- == See also == -->
+
== See also ==
 
<!-- This section contains links to articles, functions or constant groups. -->
 
<!-- This section contains links to articles, functions or constant groups. -->
 +
 +
[[UT_QuickMoveObject]]

Latest revision as of 19:32, 10 February 2010

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