Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Question! (https://forums.graalonline.com/forums/showthread.php?t=66477)

contiga 06-05-2006 01:07 PM

Question!
 
Hello folks,

How to get the angle that my projectile is shot with inside the gani? Ehh.. what I mean is:

1. I use:
temp.a = getangle( vecx( player.dir), vecy( player.dir));
shoot( player.x, player.y, player.z, temp.a, 0, 0, "e_spell_fireball", "");

2. What I now want is getting the angle that I shot with, inside the
e_spell_fireball.gani's script.. like:
SCRIPT
findImg( 1).text = gani.angle;
SCRIPTEND
Should show a message with the angle...

Anyone can help me?

contiga 06-05-2006 07:46 PM

Hummm I need some help... !! :P

Yen 06-05-2006 08:01 PM

This is coming from the person who managed to script perfectly lagless baddies?

P.S. params, retard.

xXziroXx 06-05-2006 08:43 PM

Quote:

Originally Posted by Yen
This is coming from the person who managed to script perfectly lagless baddies?

P.S. params, retard.


No, actually, a friend of mine (Drakilor) scripted them for him. He made even more ownage baddies on Mythic.

Yen 06-05-2006 10:05 PM

Quote:

Originally Posted by xXziroXx
No, actually, a friend of mine (Drakilor) scripted them for him. He made even more ownage baddies on Mythic.

I was being sarcastic.
If your baddy is active and using less than .0004% of the server, something's wrong.

ApothiX 06-05-2006 10:22 PM

Quote:

Originally Posted by Yen
I was being sarcastic.
If your baddy is active and using less than .0004% of the server, something's wrong.

Or they are clientside. (Although I suppose that would fall into the 'something's wrong' category)

contiga 06-06-2006 04:03 PM

Noobnoob
 
Quote:

Originally Posted by xXziroXx
No, actually, a friend of mine (Drakilor) scripted them for him. He made even more ownage baddies on Mythic.

Lol, actually.. this Drakilor guy didn't, Ziro... he only made the Endora baddies less laggy. (which he did by removing or changing less than 5 lines..) The Esteria baddies are entirely new.

When do people stop talking **** so fast, while they don't even know wheater its true or false! ^^

---

Quote:

Originally Posted by Yen
This is coming from the person who managed to script perfectly lagless baddies?

P.S. params, retard.

I added temp.angle before, instead of "" in the shooting part.. then I setted the rotation of the particles to params[ 0] and it refused to work =P

ApothiX 06-06-2006 04:49 PM

Quote:

Originally Posted by contiga
Lol, actually.. this Drakilor guy didn't, Ziro... he only made the Endora baddies less laggy. (which he did by removing or changing less than 5 lines..) The Esteria baddies are entirely new.

When do people stop talking **** so fast, while they don't even know wheater its true or false! ^^

---



I added temp.angle before, instead of "" in the shooting part.. then I setted the rotation of the particles to params[ 0] and it refused to work =P

Echo params[0] and see if it set right. If it didn't, then that's your problem. If it did, then post some particle code.

contiga 06-06-2006 07:51 PM

Step 1 --> shoot( player.x, player.y, player.z, temp.a, 0, 0, spell.anim, temp.a);
Step 2 --> Inside the gani (e_spellball_fireball.gani): echo( params[ 0]);
Step 3 --> Pressing F2 and seeing nothing!

Any comments?

Ps. It's not that temp.a isn't loading or so (I also tested with this., thiso., etc..).

xXziroXx 06-06-2006 07:54 PM

Are you sure echo() works in a gani? You could try to set the players chat to params[0].

contiga 06-06-2006 08:16 PM

I did echo( "Debug: " @ params[ 0]); and all that showed up was "Debug:"... so yes it works ;)

Yen 06-06-2006 09:13 PM

The problem's in the way you scripted the gani. GG.

contiga 06-07-2006 02:39 PM

Then give me an example of what would work please? :)

contiga 06-11-2006 07:38 PM

Ehh.. no one knows how? :S

ApothiX 06-12-2006 05:44 AM

Quote:

Originally Posted by contiga
Ehh.. no one knows how? :S

I've decided I'm going to boycott helping anyone who uses that annoying and pointless style where you put a space between the opening parenthesis and the first parameter, but leave the last parameter intact with the closing parenthesis. (or in the extreme cases, do it for array indices aswell.)


All times are GMT +2. The time now is 09:36 PM.

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