![]() |
file naming HELP
Trying to word this is going to be tricky, but i'll give it a go.
The issue i'm having is that I'm trying to make collision for my custom baddie. Basically, if the baddie reconizes the player.ani is an "ATTACK" gani, it will trigger the event. The ISSUE is that i have more than one ani for attack. (for different weapons) For example, I have servername_sword_atkblade, servername_sword_atkstaff, etc How do i make the baddie reconize all GANIs starting with "servername_sword_"? PHP Code:
|
i think this is what your looking for
PHP Code:
PHP Code:
|
PHP Code:
|
Quote:
PHP Code:
|
Quote:
Still doesn't work. And i even tested it with if (player.ani = "sword), and it DOES trigger the function. The issue is with the player.ani.name.starts thing. |
Quote:
|
yes. I checked over and over.
|
You're going to have to include more code than you have in your first post.
Surprisingly enough gunderak gave you the solution to the problem you asked already. |
are you checking for the if statement on a timeout? or on created?
if you only check for it on the wrong function it wont work. as fowlplay said, you should post the script here and someone may be able to help you. |
even if you dont want to check for if the players ani is whatever on a timeout do somthing like this i think.
PHP Code:
PHP Code:
i learnt this from fowlplay :D |
aaah, i got it. but HOW would you do a everything "but" if there is no =
You can't put != because it's set up like (player.ani.name.starts("servername_sword_")) Last question, what is the importance of adding two equal signs when one works? |
Quote:
PHP Code:
|
In onCreated put:
PHP Code:
PHP Code:
|
Quote:
|
Quote:
It would be much better to script an area NPCs trigger within the weapon script. Basic example: PHP Code:
What you're attempting to do with checking ganis however is pretty much how the default hit detection works, it's a good way to check for attacks from other players. What I do for this on Classic is create a static var containing all the different types of attacks as secondary variable names: PHP Code:
PHP Code:
|
All times are GMT +2. The time now is 10:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.