Making an object spin
Similar to the movements described above, you can also rotate objects, around either their
local or the world axis and determine the current angle:
Rotate , axis, angle/sec_enum
RotateWorld, axis, angle/sec_enum
Rotate, z, -30; rotate counterclockwise, 30° per second, around objects z axis
Object_ID->Rotate, Y, 100
Axis can be x, y, or z. Notice that like the move functions the value you are giving Rotate or
RotateWorld is a speed setting (not an angle), if you want to turn an object by 90% either use
set angle (for an instantaneous change) or use Rotate together with GetAngle to check how far
the object has already been turned. These functions can not be used with Actors.
Similar to the movements described above, you can also rotate objects, around either their
local or the world axis and determine the current angle:
Rotate , axis, angle/sec_enum
RotateWorld, axis, angle/sec_enum
Rotate, z, -30; rotate counterclockwise, 30° per second, around objects z axis
Object_ID->Rotate, Y, 100
Axis can be x, y, or z. Notice that like the move functions the value you are giving Rotate or
RotateWorld is a speed setting (not an angle), if you want to turn an object by 90% either use
set angle (for an instantaneous change) or use Rotate together with GetAngle to check how far
the object has already been turned. These functions can not be used with Actors.
There are no examples of these functions in action and seeing as I only seem to learn by reverse engineering another person's script I wondered if someone could give me an example of Rotateworld in action
What I'm trying to do is have an invisible platform that the player is positioned on and temporarily disabled and then spin them around an npc - or they stand on and it spins on it's axis so you get a 360 view of the room