![]() |
Is this script right?
I just need the script looked over for errors. It's a harpoon weapon.
PHP Code:
|
PHP Code:
But, bad practise is using "=" inside if statements, change them to "==" |
Wrong again.
PHP Code:
|
Ziro, what was the error?
Quote:
|
For example.
1) replaceani("walk", "graalaxy_harpoon_walk"); That replaces the WALKING ani with graalaxy_harpoon_walk. 2) replaceani("graalaxy_harpoon_walk", "graalaxy_harpoon_empty_walk"); That tries to replace a DEFAULT ani named graalaxy_harpoon_walk, which obviously doesn't exist. 3) replaceani("walk", "graalaxy_harpoon_empty_walk"); That does the trick! And to replace the harpoon walk ani to the default walk ani... 4) replaceani(walk", "walk"); |
Quote:
|
nice, but now it doesn't change the ganis when u run out of ammo
|
Quote:
|
if ( var = true )
could set var to true. There is a limited protection for this so whole scripts don't get screwed up. I would recommend disabling the players weapons for this script, then custom scripting the onKeyPressed() instead of replacing the anis of sword, etc. I personally would disagree with this: PHP Code:
PHP Code:
PHP Code:
Nice script though; better than I used to do for guns. (I used to modify sprites.png, and then change the arrows so they looked like bullets, then shoot arrows at everyone! Hah!) |
ah yes true, but- that script would be like a sword that ghost bullets shoot out of, there is no paramater for the shoot() function.
|
Talk about thread revivification.
|
2 months later...tell me about it. ;D
|
HTML Code:
//#CLIENTSIDE |
| All times are GMT +2. The time now is 08:03 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.