# Set Rotation

Grammar — SetRotation forwardX forwardY __forwardZ|Forward Z __ upX upY upZ
FlagsFunction

Constructs and returns a SetRotation actor message based on the parameters. This message will set the 3D rotation of the actor according to the Forward X,Y,Z parameters and the Up X,Y,Z parameters.

# Arguments

  • fixed — Forward X
  • fixed — Forward Y
  • fixed — Forward Z
  • fixed — Up X
  • fixed — Up Y
  • fixed — Up Z

Returns — string<actormsg>

string libNtve_gf_SetRotation(
	fixed lp_forwardX,
	fixed lp_forwardY,
	fixed lp_forwardZ,
	fixed lp_upX,
	fixed lp_upY,
	fixed lp_upZ,
);

Category: Actor / Message Constructors

# Examples

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

    // Automatic Variable Declarations
    // Implementation
    ActorSend(lp_model, libNtve_gf_SetRotation(Cos(lp_angle), Sin(lp_angle), 0, 0, 0, 1.0));
}

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

    // Automatic Variable Declarations
    // Implementation
    ActorSend(lp_model, libNtve_gf_SetRotation(Cos(lp_angle), Sin(lp_angle), 0, 0, 0, 1.0));
}