#Asap need help on making this safezone functional.
51 messages · Page 1 of 1 (latest)
Lmaooo, sorry, dm me rq ill send it asap
Send it here
are u familiar with time steal games?
Just send the code you currently have
** You are now Level 1! **
ima just explain it rq ontop of that since its kinda confusing
ima send the code for the outside and the code for the sword gear
Just make a basic FSM to indicate whether or not a player is inside the safe zone. Then in your combat script, make sure that both parties (attacker and attacked) are not in the safezone state. If either is then don't deal damage
code for the time platforms - they detect when you're outside
code for the sword gear
- I am quite a beginner, most of this was chat gpt usage. so if you'd care to explain what a fsm is, and how I should implement it into my code, itll be awesome
you never check the attacker's state...
Of course it won't check it if you don't add the check
Basically, check if the attacking character has that attribute
So I should change that line of code to make it also check the attacker's state?
which attribute, ahhh I'm confused!
Have you ever even read the code you've just send?
yes, I've told you that 3 times now
partially
How do I do that though
What should I be writing?
I really don't know this 💀
Mate, did you even bother to at least read into if statements?
If not, then just go and read into the syntax before trying to script stuff
something like this? @dense urchin
@astral steppe
@dense urchin I just did what you said
yet still it allows someone from inside the safezone to kill who's outside
#💵︱hiring
then check if they are in the safezone when u deal the damage
the output literally says nothing
** You are now Level 2! **
i never said anything about an output
u just check if the holder of the tool is in safezone or not
then dont deal damage if they are
oh
yeah they're in it yet it still does damage to someone whos outside
but when they're both in it it does zero damage
which is odd
I'll be nice. Your attribute is called "CanBeDamaged" not "IsSafeZone"