SetPosition
From Dragon Age Toolset Wiki
Sets the position of an object.
- Parameters:
- oObject
- The Object to set the position of
- vPosition
- The position vector containing the new coordinates
- bSafePosition
- Specifies whether a safe position should be calculated and used
- Returns:
- Nothing.
- Source:
- script.ldf
Description
Sets the position of the object oObject to the xyz coordinates contained in the vector vPosition. If bSafePosition is set to TRUE, then a safe position will be computed based off of the vector vPosition and this position will be used. A safe position is a valid position on the nearest walkable mesh.
Remarks
If an invalid object is specified then the function will fail. If a non-creature object is specified, a safe position can not be computed for the object so vPosition will be used, regardless of whether or not it is safe. If a safe position cannot be found and the bSafePosition flag is set to TRUE, the function will fail.