Przejdź do głównej zawartości

SetObjectRot

Description

Set the rotation of an object on the three axes (X, Y and Z).

NameDescription
objectidThe ID of the object to set the rotation of.
Float:rotationXThe X rotation.
Float:rotationYThe Y rotation.
Float:rotationZThe Z rotation.

Returns

This function always returns 1, even if the object doesn't exist.

Examples

public OnGameModeInit()
{
new objectid = CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);

SetObjectRot(objectid, 0.0, 0.0, 180.0);
return 1;
}