thanks for the response,
i've tried using the stop command, but the problem with that is i want him to be able to attack while moving also. and if there's a stop, my character will stop moving all together. That's why i was hoping the hold-fire command would do something.... but it doesn't seem to.
bump/side note,
the only reason i'm doing this is to create a smash-tv like system where a ranged weapon comes shooting out of my guy and hits whoever is in front of him. Maybe i'm going at it wrong. is there instead a way to create a detection for when the missile (battlecruiser gun) collides with an enemy?
Hi, i'm trying to make a game where you control a character (my case a zealot) with the arrow keys, and attack when you push 'a'. I want my characters weapon to be ranged, so i'm using the battlecruiser ATS gun as his main weapon. When i push 'a', a region is put in front of him, and it detects if there are any enemies inside and sets to attack them. It works except the attack will continue when you let go of 'a' and my character will hunt the enemy down.
I have the behavior set to none, and for some reason if i issue the command "hold fire" right after the attack, he will still attack. Stop won't work in this case either because i want my character to be able to attack while moving.
0
@tutstuts: Go
thanks for the response, i've tried using the stop command, but the problem with that is i want him to be able to attack while moving also. and if there's a stop, my character will stop moving all together. That's why i was hoping the hold-fire command would do something.... but it doesn't seem to.
0
@WilliamRockford: Go
bump/side note, the only reason i'm doing this is to create a smash-tv like system where a ranged weapon comes shooting out of my guy and hits whoever is in front of him. Maybe i'm going at it wrong. is there instead a way to create a detection for when the missile (battlecruiser gun) collides with an enemy?
0
Hi, i'm trying to make a game where you control a character (my case a zealot) with the arrow keys, and attack when you push 'a'. I want my characters weapon to be ranged, so i'm using the battlecruiser ATS gun as his main weapon. When i push 'a', a region is put in front of him, and it detects if there are any enemies inside and sets to attack them. It works except the attack will continue when you let go of 'a' and my character will hunt the enemy down.
I have the behavior set to none, and for some reason if i issue the command "hold fire" right after the attack, he will still attack. Stop won't work in this case either because i want my character to be able to attack while moving.
is there any way to make my guy attack once?