Forum rules - please read before posting.

Actionlist Asset influencing other Objects?

edited September 8 in Technical Q&A

I have created an Actionlist Asset that helps me adjust a Light Switch by changing different variable components on it.

For example i have one that determines if the light should flicker: "ShouldTheLightFlicker"

For Example:

  • Light 1 is a normal Lightswitch
  • Light 2 should Flicker when on

I duplicate the LightSwitch, set a new Hotspot Interaction and run an "Actionlist: Run - Assetfile" and set all of the Parameters on the new Object. I also make sure, that none of the variables or depending objects point to the other one.

But when i set the different component variables (e.g. Light 1 Flicker false and Light 2 Flicker true) and click on them, it seems to take over the component variable.

I activate Light 1 it functions normally, i activate Light 2, suddenly Light 1 behaves in a different manner and i also get this message in the console:
"Ended asset LightSwitchWithFlickerAndShutOff, but ActiveList data is retained."

How do i make sure i can use an Actionlist Asset to have differently behaving Light Switches? I even redid the tutorial https://adventurecreator.org/tutorials/actionlist-parameters :'(

(the multiple Light is on Variable checks can be ignored:))

I have screenshots of everything here:
https://imgur.com/a/onEcltY

Comments

  • Unity 6.2 and AC Version 1.83.0

  • Don't use an in-scene Interaction to indirectly run an asset - instead, set the Hotspot's Interaction source field to Asset File. You can then assign the ActionList asset file directly in the Hotspot component.

    To set the correct parameters when run, attach the Set Interaction Parameters component and configure them there. This can then be prefabbed so that it can be placed down without needing to adjust it further for each instance.

    A tutorial on working with asset-based parameter logic like this can be found here.

  • edited September 9

    Thank you, I have followed the Tutorial and redone a simpler version, i also set the interaction parameters and everything works through the actionlist assets like in the tutorial, but I'm still getting the same behaviour.

    The Message: "Ended asset ActionList, but ActiveList data is retained." persists, when i click on the first none flickering light.

    The moment i use the Light without the Flicker Variable set to true it takes over the behavior of the other (flickering) light.

  • Be sure to check Can run multiple at once? in the ActionList's properties, so that multiple instances of it can run together.

    If the message persists, share it in full - stacktrace included.

  • Jup, that little checkbox was it. Thank you very much Chris.

    This will make things a lot easier. :)

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.