Forum rules - please read before posting.
Tech questions during the weekend? Drop in on the community Discord channel!

[Feature request] Event on hotspot unregister

Hey, this request is quite specific to our project since we make use of game object disable/enable, even with hotspots. But it would be great to have an event callback when a hotspot disables, so either on item unregister in statehandler or on ondisable in hotspots themselves.

Another more minor request, this one is also quite niche, since it's aimed at people who work more with AC scripting rather than AC out of the box and somewhat relies on personal taste, would be to slightly refactor EventManager. That is all custom defined delegates, could be replaced with:
https://docs.microsoft.com/en-us/dotnet/api/system.action?view=netframework-3.5
https://docs.microsoft.com/en-us/dotnet/api/system.action-1?view=netframework-3.5
https://docs.microsoft.com/en-us/dotnet/api/system.func-1?view=netframework-3.5

Comments

  • A fair request - I'll consider a hook for the StateHandler's Unregister method.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.
Do NOT follow this link or you will be banned from the site!