Events API

Updated: 2018-08-29

Bolt provides a simple API to trigger custom events from script.

A single method call is needed:

CustomEvent.Trigger(targetGameObject, argument1, argument2, ...)

You can pass as many arguments as you need (or no event at all).

For example, this custom event unit:

Can be triggered with this line of code:

CustomEvent.Trigger(enemy, "Damage", 30);
Was this article helpful?
This article was helpful for 1 person.
Yes, helpful
No, not for me