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

categories: Area Functions | Combat Functions | Movement Functions
constants: DISTANCE_* Constants


 author: Michael Nork