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 04-27-2011, 10:46 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Gani Event? Function?

Hello, sorry for asking this question but searching the forum I have found nothing.

I am looking to see if there is any event called when a player's gani is changed. Preferably to check if a player is swimming. Or if I would need to rescript the movement and add custom events when changing ganis.

I am looking for an alternative to having to use a timeout loop to check if a player is swimming.

Thanks,
scriptless

Edit:
Not to familiar with script's in ganis. I could add a script to the gani itself maybe? On created() and trigger a function in a weapon script, right?
Reply With Quote
  #2  
Old 04-27-2011, 11:33 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Quote:
Originally Posted by scriptless View Post
I am looking to see if there is any event called when a player's gani is changed.
Perhaps try onPlayerChanges(player,id)?
Reply With Quote
  #3  
Old 04-28-2011, 01:39 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Very interesting event, however this only is affected when I change my nickname or appearance (outside of ganis) a.k.a. head, and colors.

Very nice to know tho and will definitely keep this in mind in future scripts.
Reply With Quote
  #4  
Old 04-28-2011, 01:43 AM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
I know you can check for player.gani's in if statements, but I'm not sure if there's a specific event you can call for it.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #5  
Old 04-28-2011, 02:19 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Fulg0reSama View Post
I know you can check for player.gani's in if statements, but I'm not sure if there's a specific event you can call for it.
Yes I know, but to do what I need I would need a loop apparently.
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 10:54 AM.


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