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
13,226
Views
13,226
Favorites
1
Packages
1
Total Size
0.01 MB
Version
v1.0.0 (1.var)
First release
Last update
Rating
5.00 star(s) 4 ratings

More resources from everlaster

Latest reviews

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