Hello, I want to know if there is any way to call another event in the map to avoid duplicating code.
For example, I have this bed:
And I want to make the player be able to sleep using any of those 2 events, but I don't want to replicate the code in both of them. Is there anyway to call one of them from the other? I tried this.character(event_id).start(); but it doesn't work in this case.
I know there is an option to call remote events in one Visustella plugin, but that plugin is to call a specific page from another event (It also adds a lot of other features that I do not want) and I don't want that, because I want the page to be automatically selected same as if the user were triggering the goal event
Thanks a lot in advance for your answers
For example, I have this bed:
And I want to make the player be able to sleep using any of those 2 events, but I don't want to replicate the code in both of them. Is there anyway to call one of them from the other? I tried this.character(event_id).start(); but it doesn't work in this case.
I know there is an option to call remote events in one Visustella plugin, but that plugin is to call a specific page from another event (It also adds a lot of other features that I do not want) and I don't want that, because I want the page to be automatically selected same as if the user were triggering the goal event
Thanks a lot in advance for your answers