ALFA.Database.ACR_LocationToString C# (CSharp) Method

ACR_LocationToString() public method

This routine packages a location object into a string.
public ACR_LocationToString ( NWScript.NWScriptEngineStructure2 Location ) : string
Location NWScript.NWScriptEngineStructure2 Supplies the location to convert.
return string
        public string ACR_LocationToString(NWLocation Location)
        {
            Vector3 Position = Script.GetPositionFromLocation(Location);

            return String.Format(
                "#A#{0}#X#{1}#Y#{2}#Z#{3}#O#{4}",
                Script.GetTag(Script.GetAreaFromLocation(Location)),
                Script.FloatToString(Position.x, 0, 9),
                Script.FloatToString(Position.y, 0, 9),
                Script.FloatToString(Position.z, 0, 9),
                Script.FloatToString(Script.GetFacingFromLocation(Location), 0, 9));
        }