GetAheadLocation

From NWN Lexicon
Jump to navigationJump to search



GetAheadLocation(object)

This function returns a location directly in front of the target.

location GetAheadLocation(
    object oTarget
);

Parameters

oTarget

Target to be in front of


Description

Returns location directly ahead of the target and facing same direction as the target (think leading the target).

Calls
location GenerateNewLocation(object oTarget, float DISTANCE_MEDIUM, float fAngleToRightFlank, float fDir)



Requirements

#include " x0_i0_position "

Version

1.61

See Also

constants: 

DISTANCE_* Constants



 author: Michael Nork, editor: Mistress