How to rotate an object using a slider widget

I need an object to rotate 180 degrees using a slider widget. I was looking through the slider widget in the API page but I couldn’t figure out how to fit in a code to rotate an object using the slider. I also want the object and its objects to rotate with it, kinda like smoke coming out of a cannon and when it rotates and shoots, the smoke comes out in the direction of where the cannon shoots. Any help will be appreciated! Thanks! [import]uid: 69494 topic_id: 25713 reply_id: 325713[/import]