SetLocation

From Dragon Age Toolset Wiki
Jump to: navigation, search

Sets the location of the specified object.

void SetLocation(
object oObject,
location lLocation
);
Parameters:
oObject
the object to set the location of
lLocation
the location to set the object to
Returns:

Nothing.

Source:

script.ldf

Description

This function sets the location of the specified object. If another area is specified, the object will be moved. However it should be noted that moving an object in this manner is inherently unsafe as the target location might not be a "safe" location.

Remarks

Moving an object to another area via this function should probably be discouraged. Use of the JumpToPoint or JumpToObject commands would be much safer.