Reload Times
ovechkin8
Member Posts: 42
I would like to create a reload time for the users weapon. I would like to have the following sequence occur.
- cannon fires
- smoke flies behind cannon ball out of cannon
- a slight delay of like one seconds with a timer
- and then finally a slight green glow that spawns around the cannon signals that its reloaded
Here is what i have done. I got steps one and two done with no problem. I know how to create a timer attribute to apply to the cannon. However, I am not sure on how to make a delay so that the cannon "pauses" for that second so they user cannot keep firing a semi automatic cannon. And then I have the green glow as an actor.
If you can help that would be great.
Thanks
- cannon fires
- smoke flies behind cannon ball out of cannon
- a slight delay of like one seconds with a timer
- and then finally a slight green glow that spawns around the cannon signals that its reloaded
Here is what i have done. I got steps one and two done with no problem. I know how to create a timer attribute to apply to the cannon. However, I am not sure on how to make a delay so that the cannon "pauses" for that second so they user cannot keep firing a semi automatic cannon. And then I have the green glow as an actor.
If you can help that would be great.
Thanks
Comments
There may although be a quicker alternative but this is the first thing that came into my mind...
Make a background attribute booleen called "reloading"
In the shoot rule for the cannon actor. Put change attribute in the rule box so when it fires it changes the attribute to true.
Now also make sure it does not shoot when the attribute is true.
make a rule in the actor
when attribute "reloading" is true
Timer
after (how long the reload is)
change attribute "reloading" to false.
I hope that is what you were looking for