Difference between revisions of "Rotating an object around another object with a script"

no edit summary
imported>Indefiance
imported>Indefiance
 
Line 66: Line 66:
short boolean
short boolean
short zboolean
short zboolean
Begin GameMode
 


and add this following code right after setting the mods, and before setting the players position (thats where I put it at least).  The .2 value determines the speed at which the object oscillates on the mod_z and hdist dimensions, a larger value will cause the object to oscillate quickly, a smaller value subsequently means it will oscillate slowly.   
and add this following code right after setting the mods, and before setting the players position (thats where I put it at least).  The .2 value determines the speed at which the object oscillates on the mod_z and hdist dimensions, a larger value will cause the object to oscillate quickly, a smaller value subsequently means it will oscillate slowly.   
Anonymous user