Maths and Rotation

Post » Sun May 01, 2011 9:06 pm

Could anyone help me with the next step to http://cs.elderscrolls.com/constwiki/index.php/Rotating_an_object_around_another_object_with_a_script that is on the TES wiki. Do I add an OnActivate to get it to work and if so where?
Would appreciate any help, totally confused
User avatar
Zoe Ratcliffe
 
Posts: 3370
Joined: Mon Feb 19, 2007 12:45 am

Post » Mon May 02, 2011 2:40 am

Depends on what you are trying to do.

If you want an object to rotate around the player you could just put that script on the object that is being rotated and it should run from the start of the game (just make sure you put a moveTo player in there to get the object in the same cell as the player).

You can use an OnActivate block to initiate the rotation. Just use a short variable to keep track if the object has been activated or not.

That article was mainly meant to provide the math for other modders to adapt into their own scripts.
User avatar
Arrogant SId
 
Posts: 3366
Joined: Sat May 19, 2007 11:39 am

Post » Sun May 01, 2011 1:27 pm

Thank you. That helped me figure it out. Cheers
User avatar
Devin Sluis
 
Posts: 3389
Joined: Wed Oct 24, 2007 4:22 am


Return to IV - Oblivion