Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Offset a gani's x,y position in player.attr[] (https://forums.graalonline.com/forums/showthread.php?t=134268326)

Cubical 06-15-2013 01:56 PM

Offset a gani's x,y position in player.attr[]
 
I currently have a few animations that use particle effects that I would like to use without having to make new ones just to offset it by 0.5. I've never been in a situation where I feel like it's be more practical to somehow modify the x/y instead of just creating a new gani. Is there any way to access and modify the properties of a gani stored in a players attributes or will i need to just create new ones? I don't mind spending the two minutes fixing each one but if I can just manipulate it I'd rather do that.

DustyPorViva 06-15-2013 03:36 PM

Try:

findani("particleani").offsetx = .5;

Cubical 06-15-2013 04:42 PM

Quote:

Originally Posted by DustyPorViva (Post 1719277)
Try:

findani("particleani").offsetx = .5;

Cool thanks. Another question do you know if there is anyway to display two by using 1 attribute and have them both display at the same time? Example:

player.attr[11] = {"oooyoutouchmytalala.gani", "mydingdingdong.gani"};

edit: just realized this is my 1000th post

DustyPorViva 06-15-2013 05:05 PM

Also remember offset is clientside like zoom. And alpha, so you' ll have to embed it in the ganiscript for other players to see as well.

For the second I don't think so.

Can try:
Findani().playerlook = false;
Findani().actor.attr[2] = "bleh.gani";

But I highly doubt that will work.

Draenin 06-15-2013 05:50 PM

Quote:

Originally Posted by Cubical (Post 1719280)
Another question do you know if there is anyway to display two by using 1 attribute and have them both display at the same time? Example:

player.attr[11] = {"oooyoutouchmytalala.gani", "mydingdingdong.gani"}

Are you trying to display two ganis at once, or two different types of particles attached to the gani?

dylan 06-15-2013 09:53 PM

If you're trying to attach to animations or particles to the player, you're going to have to combine them into a single animation or assign them to different attrs.

I'd suggest doing a system for these types of things, so maybe attrs 10-15 would be for particles or so that way you could normally have enough space to fulfill your desires and it wouldn't be overrun by other scripters.


All times are GMT +2. The time now is 11:41 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.