Trouble with double function gun

Report any bugs here or ask questions here!

Trouble with double function gun

Postby nightmar » 11 November 2020, 10:39

I am in the process of developing a gun that will switch functions using a key bind trigger. I am facing unexpected problems and I fail to see how to fix them.

https://www.plazmaburst2.com/level_edit ... gun_change


The problem appears to be that the 2 last triggers do not function as intended (I tried to make one activate the other and deactivate itself). I do not understand why they don't work or how to fix it.

Any help is appreciated.
How many bugs does this game have anyway? jeez
User avatar
nightmar
Usurpation Destroyer [350]
 
Posts: 393
Joined: 2 September 2017, 19:36
Location: Inside your closet or under your bed

Re: Trouble with double function gun

Postby Stamtish » 11 November 2020, 11:02

That's mostly because of the order of trigger executions. It first, executes the switch1 trigger, activates the other one, and then deactivates itself. When you press F again, It executes switch2, disables itself, then activates switch1. THEN the first trigger that gets activated by "F" bind will execute switch1, which then again is executed.

To fix this, you just need to add a timer delay to activate / deactivate each switch trigger

Here : https://www.plazmaburst2.com/level_edit ... mtish-test
Keep your Friends close, But Keep your Enemies closer... -Blade
User avatar
Stamtish
Cyber Grub [25]
 
Posts: 41
Joined: 21 December 2019, 13:59
Location: Hell


Return to Bug Reporting, Help & Support

Who is online

Users browsing this forum: No registered users