Thread: MAKI Cheats
View Single Post
Old 1st December 2002, 15:38   #202
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Ok everyone, I have started making yet another script. I probably have everything wrong, because I did not have any other scripts to find code actions from, as I think this is the first of its kind. Can someone please help?
(it is to rotate a whole group)
code:

#include "../../../lib/std.mi"

Global Button rotateBtn;
Global Boolean rotateDown;
Global Group rotateDraw;

System.onScriptLoaded()
{
rotateDraw = System.getContainer("main").getLayout("normal").getObject("rotate.gp");
rotateBtn = getObject("rotate.button");
}

rightBtn.OnLeftClick()
{
onClick.rotateBtn {
rotateDraw.RotateDegrees(120); //The amount of degrees to rotate on the click of the button
}



thanks,
hh
hammerhead is offline   Reply With Quote