Posts
503
Respect
389Add +1
Forum Rank
Zombie Enslaver
Primary Group
Member
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!maps\rotate::main();
zombiemode::main();
targetname: rotate
script_noteworthy: x or y or z (only 1)
speed 1 (1 is slow 5 is normal)
targetname:rotate
script_noteworthy:x, y, or z
main()
{
rotate_obj = getentarray("rotate","targetname");
if(isdefined(rotate_obj))
{
for(i=0;i<rotate_obj.size;i++)
{
rotate_obj[i] thread ra_rotate();
}
}
}
ra_rotate()
{
if (!isdefined(self.speed))
self.speed = 10;
if (!isdefined(self.script_noteworthy))
self.script_noteworthy = "z";
while(true)
{
// rotateYaw(float rot, float time, <float acceleration_time>, <float deceleration_time>);
if (self.script_noteworthy == "z")
self rotateYaw(-360,self.speed);
else if (self.script_noteworthy == "x")
self rotateRoll(-360,self.speed);
else if (self.script_noteworthy == "y")
self rotatePitch(-360,self.speed);
wait ((self.speed)-0.1); // removes the slight hesitation that waittill("rotatedone"); gives.
// self waittill("rotatedone");
}
}