Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.