View Single Post
  #1  
Old 09-07-2013, 12:32 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Rotate Param1 in gani script

I feel stupid because I feel like I should know this, but I can't get it to work and have never done it before. I'm just trying to put a script in a gani to rotate the image set in param1. The below doesn't work.

PHP Code:
function onPlayerEnters() {
    
this.rotationpi*2;

Also tried this, and no go
PHP Code:
SCRIPT
function onPlayerEnters() {

    
this.daImg params[0];

    echo(
this.daImg);
    
doTheRotator();

}


function 
doTheRotator() {

    
this.rotation += 2;
        
//this.rotation = pi*2; tried this too

}
SCRIPTEND 
I'm not gonna lie, because it'd be too obvious if I tried, but I have absolutely no idea what I'm doing lol. I just want the gani to rotate when its set, then entire dang thing, because its only params1 in it. Dunno if its possible and I've never rotated a thing in my life. Just need it to roll over once.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...



Last edited by sssssssssss; 09-07-2013 at 02:21 AM..
Reply With Quote