LocationToString

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



LocationToString(location)

Turn a location into a string.

string LocationToString(
    location loc
);

Parameters

loc

The location to be converted.


Description

Returns the string representation of the location(loc).



Remarks

Essentially a debug function that returns a string representation of the location parameter formatted as follows:
(AreaTag) (xAxis yAxis zAxis) (facing)
Where
AreaTag is a string
and
xAxis, yAxis, zAxis, and facing are floats

Calls
string FloatToString(float f)
string GetTag(object oArea)
object GetAreaFromLocation(location loc)
float GetFacingFromLocation(location loc)
vector GetPositionFromLocation(location loc)
string VectorToString(vector vec)


Requirements

#include " x0_i0_position "

Version

1.61

See Also

functions: 

VectorToString



 author: Grimlar, editor: Michael Nork