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.rotation= pi*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.