CommandMoveAwayFromObject

From Dragon Age Toolset Wiki
Jump to: navigation, search

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

The parser extracted and matched all the information required to the best of its ability however the parser relies on the source file, and especially a function's comments, to be correctly formatted. If the source file was not correctly formatted the information presented may be incomplete.

This page should be reviewed by a knowledgeable scripter as it may require updating. If an issue with the source file is identified it should be reported to BioWare.

Please remove the {{Generated}} tag once the page has been confirmed or corrected.

Moves creature away from specified target object at the specified distance

command CommandMoveAwayFromObject(
object oTarget,
float fAwayDistance,
int bRunToLocation = TRUE
);
Parameters:
oTarget
the object from whom to move away
fAwayDistance
The distance away from the target we want to be
bRunToLocation
specifies whether the object should run or not
Returns:

a valid command

Source:

script.ldf

Description

If no clear line-of-sight exists between our current position and any position around the target at the specified distance, the AI command will return failure. If we're currently further away from the target than the specified distance, the command will actually bring us closer up to the specified distance.