![]() |
Gani Solutions!
Ive come up to a solution to all the resent gani problems, mainly that a gani is not able to read data from other players. I'll refer to the HUD gani I made on Mythic (most parts of it have been removed though).
This is a non-working example of it: PHP Code:
PHP Code:
However, you can easily create an array-like player.attr and store the data in that. PHP Code:
PHP Code:
NOTE: Whenever you use onCreated() in a gani, it will only be triggered the FIRST time the gani is shown. If you do onPlayerEnters(), it will be triggered every time you enter a level AND when you update the script of the gani. |
hmm, would this work if the player.attr[21] were the same?
I need some help with my flaot text and I gotta test this method :D |
Quote:
|
I was about to make a thread about making player.attr support arrays!
I suppose this will do though, thank you! :) |
ADD: I ran into this problem again, and I think that I should tell everyone what the REALLY IMPORTANT part is that WILL make it function properly.
Example 1 (non working): PHP Code:
PHP Code:
However, if you try to change player.attr[21] to something else (atleast serversided, didnt try to do it on clientside) - your chat will not update. I guess this is because attr is not supposed to be used as an array, but, it WILL work if you tokenize the attr array. Example 2 (working): PHP Code:
PHP Code:
I hope this will be of more help. :) |
very nice can you explain to me how to make a gani script im not good at it
|
| All times are GMT +2. The time now is 04:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.