CommandMoveToObject

From Dragon Age Toolset Wiki
Jump to: navigation, search

This page was generated by Sunjammer's Dragon Age Script Parser.

The parser was unable to extract and/or match all the information required and has flagged this page as containing one or more errors. The source file was not formatted correctly and the information presented is incomplete or incorrect.

This page must be reviewed by a knowledgeable scripter as it will need to be updated. Once identified, the issue in the source file should be reported to BioWare.

Please remove the {{Generated with errors}} tag once the page has been corrected.

This function is a move to object command constructor. The object executing the command will only use the position and disregard the target object orientation.

command CommandMoveToObject(
object oTarget,
int bRunToLocation = TRUE,
float fMinRange = 0.0,
int bUseOriginalPosition = FALSE,
float fMaxRange = 0.0
);
Parameters:
oTarget
the object the command should move the creature to
bRunToLocation
specifies whether the object should run or not
fMinRange
The closest to the object we can be
bUseOriginalPosition
Even if the target is moving, use the original position
fMaxRange
[Undocumented]
Returns:

a valid command

Source:

script.ldf

Description

This function is a move to object command constructor. It creates a move to object command which can then be added to any object's command queue. This command, when processed will attempt to move the creature to target object.

Remarks

Only creatures can move, non-creature objects that have a move command assigned to them will fail the command when attempting to process it.