function CreateObjectEx( model, x, y, z, rotx, roty, rotz )
{
local obj = CreateObject( model, Vector( x, y, z ) );
obj.Angle = Vector( rotx, roty, rotz );
}
You might aswell use .RotateTo instead of .Angle but that will not rotate the object instantly.