Gani - Emulate "Serverside" particle effects
I've read other posts and I just can't figure it out or get it right. I was wondering if anyone could possibly help me with getting particles to display through a gani (as I've heard, its possible to do) so that some of the effects will show on all players screens.
I've tried several attempts at getting them to display, but it always failed to show to all players. I know you have to plug in SCRIPT ENDSCRIPT tags into the gani file, but as for displaying the gani, I just don't follow. I feel like maybe I've setup the effect wrong in the gani, such as how it should initialize and continue playing. I just want it to show after an onWeaponFired() call, and turn off after another call. Simple this.on = !this.on weapon with a gani (for testing). Any help is much appreciated! |
are you setting attrs to the ganiscript?
|
No I'm not. How would I go about doing that?
|
To initialize the script, set a player's attr to the gani:
player.attr[1] = "name.gani"; |
Quote:
|
If anyone has a small example, I feel that would be the best way to go about it... I'm still a little confused on how to effectively do this.
|
I believe, sending params to the script is done:
player.attr[1] = "name.gani,param1,param2,param3,etc."; then they are set as the params for onPlayerEnters() in the gani script. As for 'player position', I don't think it actually sets the player's gani when you set the attr, you need to do setani() for that still. I might be wrong, but I think it just sets the script part of the gani, so you don't have to worry about it looking like multiple ganis. example: NPC Code:onActionProjectile() Note: I usually clear the attr to "" whenever I set the gani script because I remember there were issues with the script not updating if it was already running when you decide to set it again. |
Quote:
|
There's nothing to display, it isn't displaying any actual 'gani'. It is just running the 'gani script', which is usually particle effects. The location of the particle effects are determined by the script, usually in relation to player.x/y and with setting the layer to determine whether it is above things or below things.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
PHP Code:
|
I've tried so many test. I just can't get it.
|
Got it now! Thanks for the assistance blah! (I guess I'm more tired than I thought haha)
|
All times are GMT +2. The time now is 11:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.