Difference between revisions of "UT QuickMove"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (Created page with '{{dafunction |name = UT_QuickMove |brief = This function quickly moves a creature to a location. |param1type = object |param1name = oMover |param1desc = The creature that will be...') |
BryanDerksen (Talk | contribs) (whoops, this version takes a tag. QuickMoveObject is the one that takes an object.) |
||
Line 2: | Line 2: | ||
|name = UT_QuickMove | |name = UT_QuickMove | ||
|brief = This function quickly moves a creature to a location. | |brief = This function quickly moves a creature to a location. | ||
− | |param1type = | + | |param1type = string |
− | |param1name = | + | |param1name = sTag |
− | |param1desc = The creature that will be moved | + | |param1desc = The tag of the creature that will be moved |
|param1default = | |param1default = | ||
|param2type = string | |param2type = string |
Revision as of 19:31, 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
);
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.