


Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
var = getent("YOUR TARGETNAME HERE","targetname");
angle = #; // replace # with the angle that you want it to rotate to
time = ##; // replace ## with the amount of time it takes to complete the rotate
var RotateRoll(angle,time);
var RotateYaw(angle,time);
var RotatePitch(angle,time);
// each of these lines ^ makes it rotate on a different axis, so experiment so you know which one you want and either delete or comment out the other lines
for(;;){
var = getent("YOUR TARGETNAME HERE","targetname");
angle = #; // replace # with the angle that you want it to rotate to
time = ##; // replace ## with the amount of time it takes to complete the rotate
var RotateRoll(angle,time);
var RotateYaw(angle,time);
var RotatePitch(angle,time);
// each of these lines ^ makes it rotate on a different axis, so experiment so you know which one you want and either delete or comment out the other lines
wait(.05);
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
![]() | |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
He would get an infinite loop error if he did that, add a wait with the amount of time.
RotateObject(entity_targetname, angles, degree, time)
{
thing_to_move = GetEnt(entity_targetname, "targetname");
//You can also use getEntArray if you're doing multiple entities of the same targetname. (Have to do that or else you'll get an error with getEnt.)
//Rotate functions consists of: RotatePitch, RotateRoll, RotateTo, RotateVeolcity, RotateYaw
//So if I wanted to move it lets say up I wold do....
if( isDefined(degree) )
{
thing_to_move RotatePitch(degree, time);
thing_to_move waittill("rotatedone");
}
else if( IsDefined(angles) )
{
thing_to_move RotateTo( angles, time );
thing_to_move waittill("rotatedone");
}
//rotatedone is an automatic notify of Rotate(Function)
//then you'd do something else inbetween, seems easy enough?
//Look into a couple of Script References on all the parameters and specific function details on each Rotate function.
}
He would get an infinite loop error if he did that, add a wait with the amount of time.