Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-15-2013, 01:56 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
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.
Reply With Quote
  #2  
Old 06-15-2013, 03:36 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Try:

findani("particleani").offsetx = .5;
Reply With Quote
  #3  
Old 06-15-2013, 04:42 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by DustyPorViva View Post
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
Reply With Quote
  #4  
Old 06-15-2013, 05:05 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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.
Reply With Quote
  #5  
Old 06-15-2013, 05:50 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by Cubical View Post
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?
Reply With Quote
  #6  
Old 06-15-2013, 09:53 PM
dylan dylan is offline
AGT
Join Date: Jul 2012
Location: United States
Posts: 60
dylan has a spectacular aura about
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.
__________________

<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:52 AM.


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