GetBehindLocation

From NWN Lexicon
Revision as of 00:25, 26 August 2012 by Dood (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search



GetBehindLocation(object)

Returns location directly behind the target and facing same direction as the target

location GetBehindLocation(
    object oTarget
);

Parameters

oTarget

Target to get behind


Description

Returns location directly behind the target and facing same direction as the target (useful for backstabbing attacks).


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



Remarks

This function is functionally the same as
location GetOppositeLocation(object oTarget)
The only difference being that GetOppositeLocation calls GenerateNewLocation(oTarget, DISTANCE_MEDIUM, fDir, fAngleOpposite)
And GetBehindLocation calls
GenerateNewLocation(oTarget, DISTANCE_MEDIUM, fAngleOpposite, fDir);


Requirements

#include " x0_i0_position "

Version

1.61

See Also

constants: 

DISTANCE_* Constants



 author: Michael Nork