Jump to content

Home

script: rotating + moving up/down


MilesTeg

Recommended Posts

I´m trying to figure this combination out, but it just works the way I want: An object should move up and down and rotate continuously without any interfering.

 

I tried it with a func_rotate entity and used a script that should move it up and down. But somehow the rotation (ordere by the map) slows down (???) when it moves up for the first time.

 

So I tried to make everything with scripts but then the script changes direction of the rotation.

The loops and the movement are ok.

 

It would be a big help if someone knows how to make an object rotate 360° continuously with scripts

Link to comment
Share on other sites

what about putting the rotation parts of the script in a infinite loop?

 

from the manual:

 

If you wish a loop to continue forever, put a ?-1? in the loop number.

 

Loop ( -1 )

{

wait ( 3000 )

print ( ?Hello World!? )

}

 

This will make these two commands repeat forever or until these commands are flushed.

cant think why this shouldnt work with a brush rotation script though i havent tried it yet.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...