![]() |
player.attr
Is anyone else having problems with this?
I'm trying to make it display a gani next to the player, so I used player.attr, it show's the gani, however it won't attach any other params to it. Can player.attr be classed as an array? If not, does anyone have any suggestion's on how to pass a message on to the gani? It's basically going to be for a damage display feature. Thanks, in advance! |
You can use gani parameters like for normal ganis,
player.attr[1] = "my.gani,param1,param2"; To access those use "function onPlayerEnters(param1,param2)" in the gani script. Another solution is to set another attr and access it from the script |
Can this work for replaceani() as well? I've had people be like "okay I can replace the ganis... but what about params?"
|
would be nice to have like
PHP Code:
|
replaceaniparams()?
... ... BRILLIANT! http://img85.imageshack.us/img85/7664/brilliantwo0.jpg edit -- oh wait that's not a command nvm |
It was an suggestion :]
|
I have updated my post, I forgot you get the gani parameters in onPlayerEnters(param1, param2 etc.) now.
|
So I say...
PHP Code:
|
You cannnot pass gani parameters to animations which are automatically started (replaceani), you need to use other attr[] to store values. The onPlayerEnters would need to be in the gani script otherwise only yourself would see the effect.
|
I don't understand -- any chance of an example?
|
Quote:
Previously, when you used a gani-script you had to use if (playerenters) because of onPlayerEnters replacing parameters. You can now use onPlayerEnters and get the desired effects. This is only for gani-scripts, so the sample you posted wouldn't do anything. |
All times are GMT +2. The time now is 09:19 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.