S_Leonardo
10 years agoOccasional Contributor
Trigger an event whenever a script is called
Hi,
i got some difficulties trying doing this. Whenever a method inside a script is called, i need to run a method that belongs to the same script.
It's something like this:
Sub DoSomething1
*Code
End Sub
Sub DoSomething2
*Code
End Sub
Sub Preparation
*Code
End Sub
Whenever i call DoSomething1 or DoSomething2 i want to call Preparation before. I do not like the idea of having to call Preparation in every method i create. Is there a way to use something like a event to trigger whenever a method inside this script is called?
Sorry if i'm not being clear enough.
Thanks!