Alongside tinkering with AC, I've also been learning Unity's Visual scripting for some custom scripts. What's the best way to integrate an AC hotspot into a visual script? What nodes should I be using to retrieve that input? I tried putting down a node that references the hotspot's box collider to call on it's position, but can't get it to work. Sorry if this is a vague question or beyond the scope of an AC related question. Thanks!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Sorry, I seem to be notoriously figuring out my own issues moments after posting my questions! I don't mean to be clogging up the forums.
Solution: The node I was looking for was "on mouse down" and then insert the hotspot object (or any object with a box collider) into the object slot of that node.
That'll work for general Hotspot detection - but it'll ignore things such as AC's internal "game state", meaning it'll work also while in e.g. a cutscene, when such gameplay should be blocked.
This may be enough for your purposes, but the way I'd approach this would be to leave AC to handle the Hotspot interactions, but instead of assigning ActionLists, attach a custom script that triggers an attached ScriptMachine's event when interacted with.
Something along these lines:
Thanks for the reply and for helping me troubleshoot! I'll see how this method works.