![]() |
Exactly what is...
A gani script? Where does it go? What does it do? Does it have any special things I should know about?
|
It's in the ganis :D In a SCRIPT SCRIPTEND block
In GS1 it is limited in functionality (since it can be edited), in GS2 it is compiled on the server and can do everything that other client scripts can do as well. You can either use it in a gani with setani/this.ani, or you "attach" it to a player or npc by doing object.attr[index] = "mygani.gani"; One thing that is special is that you can access the object to which the gani belongs / is attached to by "player". Also onPlayerEnters() receives the gani parameters (setani("aniname",param1,param2,...)) as function parameters. |
Quote:
Example PHP Code:
PHP Code:
|
Quote:
Pretty much, GANI scripts are good when you want to display something about the player to all other players but clientside. Since the GANI is displayed to everyone, they all see the same clientside effects when they are in a GANI script. If you've ever been on Era and seen those floating text messages saying "-5" or "Dead" or whatever, those are a GANI script. |
Quote:
|
Gani scripts are awesome :)
They can be a pain though especially when it comes to sending params to it (was alot easier in GS1) when it is attached to an object using obj.attr[i] = "file.gani" Most people get around this buy just making the params into a string though and tokenizing the param when it gets to the gani. |
| All times are GMT +2. The time now is 06:02 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.