Events API

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);

This article was helpful for 6 people. Is this article helpful for you?

+1

is there a way to get all custom events from script?

+5

ok.i got it,i created a list<string> to store all custom event's name,then i can get this variable.

and the custom event can use like System.Action,.

How funny tool! umm~bolt is the best visual script!

+2

Documentation is missing explanation on includes and namespaces. I had to scroll randomly through Discord's #scripting-api to have a hint.

using Ludiq;
public class...
{
    ...
    Bolt.CustomEvent.Trigger(...)
}

API was just a new software that was working in event organizer company this has all the data of clients and their requirements. I also want to made a software like that so I took help from essay writers they have all codes and the languages on it that was compulsory for software.