GetAheadLocation

From NWN Lexicon
Revision as of 00:24, 26 August 2012 by Dood (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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