CONKER wrote:I'm trying to make a handle rotate, but for some reason it shows the hand symbol for you to press F but when I press F it doesn't do anything. Here's my code.
Does anyone know whats wrong with my code?
Code: Select all
main()
{
thread handle();
}
handle()
{
handle = getent("Handle","targetname");
trig = getent("Handle_Trigger","targetname");
while(1)
{
trig waittill("trigger");
handle rotateroll (-1080,5);
handle waittill("rotatedone");
wait(10);
handle rotateroll(1080,5);
handle waittill("rotatedone");
}
}
Make sure when you created your handle that you added an origin brush for the rotation axis,
Make sure you use rotatedone instead of movedone when dealing with a rotation.
Also, double check the targetnames, they might not match.
Lastly, please put your map name in front of the targetnames to avoid conflicting with other maps.