[Base Entity] Allow native events calls
T
Timmy
Just thought about this again,
BaseEntity:CallEvent
would not only allow to trigger native events, but keep a clean codebase when dealing with events related to the classInstead of using
Events.Call
by passing the object and the needed data, it would allow scripters to use the native event dispatcher and Call/Subscribe to events on the class or on the object, so eventually we could keep the Events
library for events that are not related to native classesVoltaism
It won't break the entity as the event will only be called on the lua side...
Anyway, Modularity.NativeCallEvent(...)
T
Timmy
Voltaism: By breaking I mean some mistakes like calling the "Spawn" or "Destroy" event out of context, or calling an event with wrong parameters and stuff like that