|
I have this js set to make my charter take damage over time as long as its in my invisable collide but its doing 1 damage every second and I need to put it on a delay. I want it to do 5 damage every 3 seconds you are in it.
(comments are locked)
|
There you go, use a simple timer. its still just doing the damage every second non stop till he is dead
Apr 03 '12 at 03:51 PM
Davidflynn
Well, that makes sense. I forgot something, fixed now.
Apr 03 '12 at 05:13 PM
OrangeLightning
(comments are locked)
|
|
Maybe making a function doDamage and calling WaitForSeconds? As you want 5 of damage every 3 seconds you can do: When it reachs a certain amont of damage you can turn like a bool to false to lock the doDamage function.
(comments are locked)
|
