# Convert Bearings To String

FlagsFunction

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 X
  • fixed — Position Y
  • fixed — Position Z
  • fixed — Forward X
  • fixed — Forward Y
  • fixed — Forward Z
  • fixed — Up X
  • fixed — Up Y
  • fixed — 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,
);

Category: Conversion / Actor Conversions

# Examples

mods/core.sc2modbase.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.stormmodbase.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) + "'"));
}