Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

Recommended Posts

Hey

 

What would be the best way to check if any of multiple inputActions are active? I cannot come up with anything except multiple if conditions.

I'm trying to simulate weapon info box if 'Fade out' is active.

inputAction "reloadMagazine" > 0

 

Share this post


Link to post
Share on other sites
private _active = {inputAction _x > 0} count ["ReloadMagazine", "Throw", "MiniMap"] > 0;

* measurements have shown that the shortest variant is also the fastest

Share this post


Link to post
Share on other sites
49 minutes ago, serena said:

private _active = {inputAction _x > 0} count ["ReloadMagazine", "Throw", "MiniMap"] > 0;

 

 

Thanks, i have been brainfarting with these little things lately

Share this post


Link to post
Share on other sites

×