UT QuickMoveObject
From Dragon Age Toolset Wiki
Revision as of 19:32, 10 February 2010 by 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...')
This function quickly moves a creature to a location.
void UT_QuickMove(
object oMover,
string sWP = "0",
int bRun = FALSE,
int bFollowPath = FALSE,
int bNewHome = TRUE,
int bStaticCommand = FALSE
);
object oMover,
string sWP = "0",
int bRun = FALSE,
int bFollowPath = FALSE,
int bNewHome = TRUE,
int bStaticCommand = FALSE
);
- Parameters:
- oMover
- 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.