![]() |
Passing params to attached ganis
I think I already asked about this, but I'm not sure:
I'm attaching a gani to the player via attr[]. I want to be able to send a parameter with the gani. Is there any way to do this? In GS1, I would just do something like 'setplayerprop #P2,blah.gani,3;' It doesn't work on GS2/v4. |
attr[index] = {"ganiname", "params"};
|
player.attr[7] = {"yen-effect-copytrail.gani",3};
Nothing is showing, at all. |
Is your param 3?
NPC Code: |
Is this actually displaying the gani? Instead of using showani? or are you parsing this somewhere?
|
Quote:
player.attr[7] = {"yen-effect-copytrail", 3}; |
Quote:
If I try to set it to an array like that, it simply doesn't change. |
Put a sleep( 0.05); in the gani script, before you load params[ index] and it should work.
|
It doesn't work, period; with or without the .gani extension.
If I try to set it to an array like that, the player's attr[] simply doesn't change. |
Quote:
Maybe in this case you must do: player.attr[ 7] = "gani",3; Because in findImg( index).ani = lala; you must also do it that way. |
Quote:
player.attr[7] = { "gani", 3 }; or player.attr[7] = "\"gani\",3"; |
| All times are GMT +2. The time now is 05:08 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.