Two actions on one button

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE/EDuke32/Raze? Did your computer break? Ask here.

Moderator: GZDoom Developers

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
DSX
Posts: 2
Joined: Tue Nov 05, 2024 7:43 am

Two actions on one button

Post by DSX »

So i am using both Flashlight++ and Ultimate DoomVisor addons. I like the option in UDV where you can set the flashlight to use Accessory power. That way you have to be a bit mindful about not using it all the time. But it only works on the stock flashlight, not on Flashlight++.
So my idea is to bind both flashlights to the same button. Flashlight++ is so bright that i hardly notice the other flashlight is on as welll, but i do get the battery drain that way.
I read some topics about using alias but i can't wrap my head around it.
Could anyone tell me how to go about it?
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: Two actions on one button

Post by Blue Shadow »

You don't particularly need an alias. You can use the bind command directly. Execute the command through the console:

Code: Select all

bind f "<command #1>; <command #2>"
Replace <command #X> with the commands for toggling the flashlight in those mods. For Flashlight++, the command appears to be FPP_Toggle. I don't know about Ultimate DoomVisor, though. You'll have to find it out yourself.
DSX
Posts: 2
Joined: Tue Nov 05, 2024 7:43 am

Re: Two actions on one button

Post by DSX »

Thanks Blue Shadow for helping a fellow Doomer out!. It works like a charm. Just a shame i didn't think things through. I now do see the accessory power number decline while flashlight++ is turned on (together with the stock flashlight), but of course as soon as it reaches 0 only the stock flashlight will automatically switch off, not flashlight++. So i did learn something new today, but sadly it does not resolve the issue for me.

Maybe i can find a line of text in Ultimate DoomVisor (where it says what it does when accessory power reaches 0).
Last edited by DSX on Wed Nov 06, 2024 3:45 pm, edited 1 time in total.

Return to “Technical Issues”