Forum rules - please read before posting.

Hold Button Input

I am trying out the new input system and, building from the RE-inspired combat example template, am wanting to add a machine gun. Currently there only seems a configuration that would require you press fire each time, there is no option for hold so you can fire the input action list repeatedly so long as the button is held.

Unless there is a way around this, a separate action list that treats input differently for this type of gun?

Comments

  • Fire input detection by the Combat example isn't handled by ActionList - it's handled by the PlayerCombat script. Specifically, this line:

    if (KickStarter.playerInput.InputGetButtonDown ("Fire1"))
    

    Removing "Down" will cause it to read the input held down.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.