Here's the commands I made to test this.
else if (Command == "!rotatex") {
GameObject *obj = Get_Vehicle(Get_GameObj(ID));
if (obj) {
Matrix3D Transform = Get_Transform(obj);
Transform.Rotate_X(DEG_TO_RADF(Msg.As_Int(2)));
Set_Transform(obj,Transform);
}
}
else if (Command == "!rotatey") {
GameObject *obj = Get_Vehicle(Get_GameObj(ID));
if (obj) {
Matrix3D Transform = Get_Transform(obj);
Transform.Rotate_Y(DEG_TO_RADF(Msg.As_Int(2)));
Set_Transform(obj,Transform);
}
}
else if (Command == "!rotatez") {
GameObject *obj = Get_Vehicle(Get_GameObj(ID));
if (obj) {
Matrix3D Transform = Get_Transform(obj);
Transform.Rotate_Z(DEG_TO_RADF(Msg.As_Int(2)));
Set_Transform(obj,Transform);
}
}