![]() |
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? |
Hummm I need some help... !! :P
|
This is coming from the person who managed to script perfectly lagless baddies?
P.S. params, retard. |
Quote:
No, actually, a friend of mine (Drakilor) scripted them for him. He made even more ownage baddies on Mythic. |
Quote:
If your baddy is active and using less than .0004% of the server, something's wrong. |
Quote:
|
Noobnoob
Quote:
When do people stop talking **** so fast, while they don't even know wheater its true or false! ^^ --- Quote:
|
Quote:
|
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..). |
Are you sure echo() works in a gani? You could try to set the players chat to params[0].
|
I did echo( "Debug: " @ params[ 0]); and all that showed up was "Debug:"... so yes it works ;)
|
The problem's in the way you scripted the gani. GG.
|
Then give me an example of what would work please? :)
|
Ehh.. no one knows how? :S
|
Quote:
|
Everyone has his own style.. we don't have to do it all your way, do we?
|
No, you do it in a way that's legible, looks nice, and isn't horribly stupid. like capitalizing every word. -that- gets on my nerves. but that's beside the point.
|
Quote:
|
Quote:
Calani is right, your formatting is far from legible and it's annoying as hell to read. You are the only person on the face of the earth that uses that type of formatting, I'm sure. You must be wondering why no one else uses it. (You remind me of NaS on Unholy Nation who intialises arrays like: this.mykewlarray = "\"one\",\"two\",\"three\""; because he thinks it makes him look like a good scripter.) |
Quote:
And not a silly way like that.. and actually, I don't care what you think about my scripting style! Also this is a little going off thread, so please answer my question from the first post, or stop posting. |
Quote:
|
Quote:
|
Quote:
|
Could anyone close this thread please? I already fixed the problem.
(For people who want to know the solution: put a sleep( .05); before loading params inside the gani script). |
Quote:
I fell off my chair laughing. |
It's silly, I know ;) What made me realise it.. is your floating text on VS:CONFLICT >_< I saw you loaded params from a showani or setani also, and echo'd from where they'd load, and the first time in the loop it didn't load, second and so on, it did ( after a sleep( 0.05); ) x_x
|
| All times are GMT +2. The time now is 03:42 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.