• Hi Guest!

    We have recently posted a VaM2 2024 Progress Update on Patreon!
    Check out the details here: https://www.patreon.com/posts/vam2-august-2024-111164439
  • Hi Guest!

    We are excited to announce a new feature on the Hub: Favorites!
    You can now add resources to your favorites, and organize your favorites into collections! You can check out the details in our official announcement!

  • Happy Holidays Guest!

    We want to announce that we will be working at reduced staffing for the holidays. Specifically Monday the 23rd until Jan 2nd.

    This will affect approval queue times and responses to support tickets. Please adjust your plans accordingly and enjoy yourselves this holiday season!
Trigger The Trigger

Plugins Trigger The Trigger

If you like this plugin, consider giving it a thumbs up or posting a review. Thanks! (y)
Requires VaM v1.20 or newer
Trigger The Trigger

This simple plugin is intended as an alternative to the Relay and Delay LogicBricks. Instead of having to add one of those on each button whose list of triggers you want to be able to execute via trigger, you can add this one plugin and have the equivalent triggerable action available on every Button and ButtonImage in the scene. This also saves you from having to relocate an existing list of triggers from the Button Trigger to the Relay's trigger panel (and vice versa in case of rollback).

Place this plugin anywhere in the scene, preferably an Empty dedicated to general scene plugins.

The plugin automatically adds the following triggerable parameters to every UIButton and UIButtonImage in the scene under the 'Trigger' Receiver:
  • Trigger Now: action which triggers the button click immediately.
  • Trigger Delayed: float parameter which triggers the button click after the specified delay in seconds. The timer starts running when you set the parameter to some value. When you set the value, the parameter automatically resets to 0, ready for you to set a greater than 0 delay again later. If you set a new value while the previous delay is still running, the previous delay is cancelled and the new delay starts.
1718218931187.png


I'm not sure if something similar is needed for other trigger types or UI atoms. At least the UISlider already has a triggerable value setter... But feel free to suggest additional features!

Thanks to @VamEssentials for feedback!
Author
everlaster
Downloads
17,260
Views
17,260
Favorites
1
Packages
1
Total Size
0.01 MB
Version
v1.0.0 (1.var)
First release
Last update
Rating
5.00 star(s) 5 ratings

More resources from everlaster

Latest reviews

amazing plugin without a doubt !!!
Upvote 0
This is a really useful plugin for me.
☆20!!
We have created a guide introducing ideas using ``Trigger the Trigger''.
I'll write the details in the discussion, so please take a look if you'd like.
Upvote 0
A lot of buttons in VAM are triggers, so this plugin basically lets you trigger a button click. I used this on Audio Player because I had 5 playlist options and when you toggle tabs, I needed it to turn off all other sections or set them to the off state. Each tab section already had dedicated off buttons but it was multiple lines of triggers on each one with different paths and to add all those triggers to one button would be a lot of lines. With this plugin I can basically create a trigger that clicks each button instead of having to duplicate all those triggers into one long list. More importantly I don't have to set anything complicated up, it's really simple to use once you understand how it works. It's a time saver and makes things much more organized and easier to understand. Thank you for this excellent plugin! Highly recommended!
Upvote 0
Yes! Having an option to delay a button's action(s) without a bunch of extra steps should be a huge improvement. The logic brick delay stuff works, but it's often more cumbersome than it's worth. I'm really looking forward to this one.
Upvote 0
Damn, if this thing had appeared earlier, my life would have been much easier.
everlaster
everlaster
Maybe I can write a TIME MACHINE plugin next. ?
Upvote 1
Back
Top Bottom