# Convert Bearings To String
Flags —
Function
Turns a 3D position and a 3D rotation (via forward an up vectors) into a string that can be used in an actor message.
# Arguments
fixed
— Position Xfixed
— Position Yfixed
— Position Zfixed
— Forward Xfixed
— Forward Yfixed
— Forward Zfixed
— Up Xfixed
— Up Yfixed
— Up Z
Returns — string
string libNtve_gf_ConvertBearingsToString(
fixed lp_positionX,
fixed lp_positionY,
fixed lp_positionZ,
fixed lp_forwardX,
fixed lp_forwardY,
fixed lp_forwardZ,
fixed lp_upX,
fixed lp_upY,
fixed lp_upZ,
);
# Related
Category: Conversion / Actor Conversions
- Convert Color To String —
string
— libNtve_gf_ConvertColorToString - Convert Bearings To String —
string
— libNtve_gf_ConvertBearingsToString - Convert XY To String —
string
— libNtve_gf_ConvertXYToString - Convert 3D Vector To String —
string
— libNtve_gf_Convert3DVectorToString - Convert 3D Rotation To String —
string
— libNtve_gf_Convert3DRotationToString - Convert String To Actor Message
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:857
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetBearings", ("'" + libNtve_gf_ConvertBearingsToString(lp_positionX, lp_positionY, lp_positionZ, lp_forwardX, lp_forwardY, lp_forwardZ, lp_upX, lp_upY, lp_upZ) + "'"));
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:746
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetBearings", ("'" + libNtve_gf_ConvertBearingsToString(lp_positionX, lp_positionY, lp_positionZ, lp_forwardX, lp_forwardY, lp_forwardZ, lp_upX, lp_upY, lp_upZ) + "'"));
}