EventHandler and events

For the event system in UCC, EventHandler.RegisterEvent(object obj, string name, Action handler). for example, if I have registered an event now, where do I need to configure and trigger this event?
 
You don't need to configure the event, you can just call it with ExecuteEvent. Take a look at the documentation for an example.
 
ExecuteEvent is the method of executing an event. If I register an event RegisterEvent, theoretically speaking, where will this event be triggered???
 
It will be triggered when ExecuteEvent is called. There's no one location in the scripts that it is triggered, it depends on what the event is. If you do a search within the codebase you'll find many instances of ExecuteEvent.
 
As shown in the picture, there is an AbilityIntData variable in Driver Ability. The modification of this variable is done through events. This variable is useful in the animator. So what I need to know is where the OnEnteredVehicle event is triggered, in order to modify the value of m-DriveState.
 

Attachments

  • change.png
    change.png
    214.2 KB · Views: 4
  • use.png
    use.png
    111.7 KB · Views: 3
Ah, that's an animation event. Take a look at this page for how that works:

 
Top