# Convert 3D Vector To String

FlagsFunction

Converts the X, Y, and Z parameters into a string with the format “X,Y,Z”.

# Arguments

  • fixed — X
  • fixed — Y
  • fixed — Z

Returns — string

string libNtve_gf_Convert3DVectorToString(
	fixed lp_x,
	fixed lp_y,
	fixed lp_z,
);

Category: Conversion / Actor Conversions

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:869

    // Automatic Variable Declarations
    // Implementation
    return libNtve_gf_ActorMsg1("SetBearingsH", (FixedToString(lp_positionX, c_fixedPrecisionAny) + "," + FixedToString(lp_positionY, c_fixedPrecisionAny) + " " + FixedToString(lp_height, c_fixedPrecisionAny) + " '" + libNtve_gf_Convert3DVectorToString(lp_forwardX, lp_forwardY, lp_forwardZ) + " " + libNtve_gf_Convert3DVectorToString(lp_upX, lp_upY, lp_upZ) + "'"));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:869

    // Automatic Variable Declarations
    // Implementation
    return libNtve_gf_ActorMsg1("SetBearingsH", (FixedToString(lp_positionX, c_fixedPrecisionAny) + "," + FixedToString(lp_positionY, c_fixedPrecisionAny) + " " + FixedToString(lp_height, c_fixedPrecisionAny) + " '" + libNtve_gf_Convert3DVectorToString(lp_forwardX, lp_forwardY, lp_forwardZ) + " " + libNtve_gf_Convert3DVectorToString(lp_upX, lp_upY, lp_upZ) + "'"));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:893

    // Automatic Variable Declarations
    // Implementation
    return libNtve_gf_ActorMsg1("SetPosition", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:947

    // Implementation
    if ((lp_blendDuration > 0.0)) {
        return libNtve_gf_ActorMsg2("SetScale", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z), FixedToString(lp_blendDuration, c_fixedPrecisionAny));
    }
    else {

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:950

    }
    else {
        return libNtve_gf_ActorMsg1("SetScale", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z));
    }
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:958

    // Implementation
    if ((lp_blendDuration > 0.0)) {
        return libNtve_gf_ActorMsg2("SetScaleAbsolute", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z), FixedToString(lp_blendDuration, c_fixedPrecisionAny));
    }
    else {

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:961

    }
    else {
        return libNtve_gf_ActorMsg1("SetScaleAbsolute", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z));
    }
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2249

    // Automatic Variable Declarations
    // Implementation
    return (libNtve_gf_Convert3DVectorToString(lp_positionX, lp_positionY, lp_positionZ) + " " + libNtve_gf_Convert3DRotationToString(lp_forwardX, lp_forwardY, lp_forwardZ, lp_upX, lp_upY, lp_upZ));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2267

    // Automatic Variable Declarations
    // Implementation
    return (libNtve_gf_Convert3DVectorToString(lp_forwardX, lp_forwardY, lp_forwardZ) + " " + libNtve_gf_Convert3DVectorToString(lp_upX, lp_upY, lp_upZ));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2267

    // Automatic Variable Declarations
    // Implementation
    return (libNtve_gf_Convert3DVectorToString(lp_forwardX, lp_forwardY, lp_forwardZ) + " " + libNtve_gf_Convert3DVectorToString(lp_upX, lp_upY, lp_upZ));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:758

    // Automatic Variable Declarations
    // Implementation
    return libNtve_gf_ActorMsg1("SetBearingsH", (FixedToString(lp_positionX, c_fixedPrecisionAny) + "," + FixedToString(lp_positionY, c_fixedPrecisionAny) + " " + FixedToString(lp_height, c_fixedPrecisionAny) + " '" + libNtve_gf_Convert3DVectorToString(lp_forwardX, lp_forwardY, lp_forwardZ) + " " + libNtve_gf_Convert3DVectorToString(lp_upX, lp_upY, lp_upZ) + "'"));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:758

    // Automatic Variable Declarations
    // Implementation
    return libNtve_gf_ActorMsg1("SetBearingsH", (FixedToString(lp_positionX, c_fixedPrecisionAny) + "," + FixedToString(lp_positionY, c_fixedPrecisionAny) + " " + FixedToString(lp_height, c_fixedPrecisionAny) + " '" + libNtve_gf_Convert3DVectorToString(lp_forwardX, lp_forwardY, lp_forwardZ) + " " + libNtve_gf_Convert3DVectorToString(lp_upX, lp_upY, lp_upZ) + "'"));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:782

    // Automatic Variable Declarations
    // Implementation
    return libNtve_gf_ActorMsg1("SetPosition", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:836

    // Implementation
    if ((lp_blendDuration > 0.0)) {
        return libNtve_gf_ActorMsg2("SetScale", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z), FixedToString(lp_blendDuration, c_fixedPrecisionAny));
    }
    else {

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:839

    }
    else {
        return libNtve_gf_ActorMsg1("SetScale", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z));
    }
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:847

    // Implementation
    if ((lp_blendDuration > 0.0)) {
        return libNtve_gf_ActorMsg2("SetScaleAbsolute", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z), FixedToString(lp_blendDuration, c_fixedPrecisionAny));
    }
    else {

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:850

    }
    else {
        return libNtve_gf_ActorMsg1("SetScaleAbsolute", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z));
    }
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1933

    // Automatic Variable Declarations
    // Implementation
    return (libNtve_gf_Convert3DVectorToString(lp_positionX, lp_positionY, lp_positionZ) + " " + libNtve_gf_Convert3DRotationToString(lp_forwardX, lp_forwardY, lp_forwardZ, lp_upX, lp_upY, lp_upZ));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1951

    // Automatic Variable Declarations
    // Implementation
    return (libNtve_gf_Convert3DVectorToString(lp_forwardX, lp_forwardY, lp_forwardZ) + " " + libNtve_gf_Convert3DVectorToString(lp_upX, lp_upY, lp_upZ));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1951

    // Automatic Variable Declarations
    // Implementation
    return (libNtve_gf_Convert3DVectorToString(lp_forwardX, lp_forwardY, lp_forwardZ) + " " + libNtve_gf_Convert3DVectorToString(lp_upX, lp_upY, lp_upZ));
}