x0_i0_position provides functions and declares constants that can be used to determine locations and positions. It is designed to be included in compiled scripts.
Constants[]
const float DISTANCE_TINY; const float DISTANCE_SHORT; const float DISTANCE_MEDIUM; const float DISTANCE_LARGE; const float DISTANCE_HUGE;
General function prototypes[]
string LocationToString(location loc); string VectorToString(vector vec); float GetAngleBetweenLocations(location lOne, location lTwo); void MoveToNewLocation(location lNewLocation, object oTarget=OBJECT_SELF); vector GetChangedPosition(vector vOriginal, float fDistance, float fAngle); float GetChangeInX(float fDistance, float fAngle); float GetChangeInY(float fDistance, float fAngle);
Direction[]
float GetOppositeDirection(float fDirection); float GetRightDirection(float fDirection); float GetHalfRightDirection(float fDirection); float GetFarRightDirection(float fDirection); float GetCustomRightDirection(float fDirection, float fAngle); float GetLeftDirection(float fDirection); float GetHalfLeftDirection(float fDirection); float GetFarLeftDirection(float fDirection); float GetCustomLeftDirection(float fDirection, float fAngle);
Location functions[]
void TurnToFaceObject(object oObjectToFace, object oTarget=OBJECT_SELF); location GetFlankingRightLocation(object oTarget); location GetFlankingLeftLocation(object oTarget); location GetOppositeLocation(object oTarget); location GetAheadLocation(object oTarget); location GetBehindLocation(object oTarget); location GetForwardFlankingRightLocation(object oTarget); location GetForwardFlankingLeftLocation(object oTarget); location GetAheadRightLocation(object oTarget); location GetAheadLeftLocation(object oTarget); location GetStepLeftLocation(object oTarget); location GetStepRightLocation(object oTarget); location GetRandomLocation(object oArea, object oSource=OBJECT_INVALID, float fDist=0.0);
Debugging[]
void SpeakLocation(location lLoc); void PrintLocation(location lLoc); string LocationToString(location loc); string VectorToString(vector vec);