automatic stop aiming

ryubi 5 months ago in Shooter updated by Marti (Lead Developer) 5 months ago 1

hi again,

i have these actions following a while mouse down trigger left:

now i would like to stop aiming automatically after say 5 seconds from last shot.

i tried various ways but i don't know how i should go about this.

how would i implement this?


Unity version:
Game Creator version:

I'll guess you're using the Shooter examples that come with the module. There's an object that handles shooting when the user presses the left mouse button (using the Trigger "On Mouse Down"). The action used is "Shoot Weapon".

After that action add the following actions:

- Wait Action => and set the time to 5 seconds

- Weapon Aim Action => and set to stop aiming

That's it!