View Single Post
  #8  
Old 02-05-2013, 12:38 AM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by Crow View Post
Give what I said a shot. Does it work?
Didn't work for me :s
Edit: I feel like ganis are being very fickle. I've been trying to debug them using player.chat = whatever, and half the time it simply doesn't work. No apparent rhyme or reason considering that It'll do this even if the updated gani is identical to a version I had a few moments ago where it worked. At the time of posting, your suggestion didn't work. There were no syntax errors, and it definitely wasn't my imagination. It simply did not work. And now for no apparent reason your method of passing params is suddenly working.

Quote:
Originally Posted by Stefan View Post
It's a special "hack" to access gani parameters inside gani scripts: if you use if (playerenters) and such then you can access the gani parameters via params[]
While we're on the topic, would there be any way to do something like this?

PHP Code:
SCRIPT
if (created){
  
onTimeout();
}
function 
onTimeout()

  
thiso.tu player.findweapon("WeaponName").GetCharge(); //<-- This
  
setTimer(.1);
}
SCRIPTEND 
Using just "findweapon("$Titan Blade").GetCharge();" works fine on your end if you're the one that's using it. It gets a value that changes the gani's colors over time as you hold a key down. Except for everyone else, it looks for WeaponName on THEIR account, which usually won't exist. Plus it's not likely that they're just going to happen to be holding the same key that's needed. Causing it not to change color on their end.

Stuff like player.x, player.y, and player.account will all accurately recognize the player that invoked the gani. But would it be possible for us to do more with that player? Or will I have to resort to a more hackish approach and send this value as it's own param and rapidly re-apply the animation over and over in order to achieve this?
__________________
MY POSTS ARE PRONE TO EDITS!

Last edited by Jiroxys7; 02-05-2013 at 01:12 AM..
Reply With Quote