# Set Bearings

Grammar — SetBearings positionX positionY positionZ forwardX forwardY forwardZ upX upY upZ
FlagsFunction

Constructs and returns a SetBearings actor message based on the parameters. This message will set the 3D position and 3D rotation of an actor. The Position X, Y, and Z parameters correspond to the 3D map grid location. The Forward X,Y,Z parameters and the Up X,Y,Z parameters correspond to the 3D rotation of the actor. It will only work on actors that have bearings, such as model actors or doodad actors.

# 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<actormsg>

string libNtve_gf_SetBearings(
	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: Actor / Message Constructors

# Examples

— None found —