Trying to build a 9mm I got an m16?
LordTarantor
Member, PRO Posts: 890
Ok If I step in the zone the enemy is supposed to shoot me once but instead it shoot a lot and if I stay in the zone it keep shooting like crazy.
What I want is when I step in the zone the enemy shoot me only 1 bullet.
Please help.
What I want is when I step in the zone the enemy shoot me only 1 bullet.
Please help.
Comments
Set it initially to true.
Whenever the gun shoots a bullet, set this to false and start a Timer to set it back to true.
Like this:
Rule
When all conditions are valid:
[player is in range]
self.OkToShoot = true
-----Spawn Actor [bullet]
-----Change Attribute: self.OKToShoot To: false
-----Timer: for 1 second: run to completion
----------Change Attribute: self.OKToShoot To: true
The delay of the Timer determines the reload time.
Hope this helps!
Joe