Forum rules - please read before posting.

The 2nd component variable can't be found in the actionlist.

The first one(isOpen) works fine but not for the next one(isLocked).
I can't find where to set the component id.
Thanks.
[url]https://i.postimg.cc/rprSBdbf/2nd-Component-Var-Problem1.jpg[/url]
[url]https://i.postimg.cc/KvW3mGtw/2nd-Component-Var-Problem2.jpg[/url]

Comments

  • How the parameter value is set depends on how you run the ActionList.

    Are you running it with the ActionList: Run Action? Or is this assigned as a Hotspot interaction?

    If you use the ActionList: Run Action to run an ActionList that has parameters, you can assign those parameter values in the Action.

    If a Hotspot is set to run an ActionList that has parameters, you can attach the Set Interaction Parameters component to the Hotspot and use that to assign parameter values.

    As a side note: your "IsLocked" component variable has its Link to field set to Custom Script. Is it your intent to have it be set through another component? If you want to link it to the Animator - as with IsOpen - you'll need to attach an additional Link Variable To Animator component. Otherwise, you may want to set Link to back to None.

  • Thanks Chris. After adding Set Interaction Parameters component to the hotspot it works fine now. I also set Link to back to None.

    What I don't understand is why the first one (isOpen) works without this component? Does that mean this component is only needed when there are more than 1 component variable?

  • edited August 2022

    No - it can and should be used whenever parameters are involved in the Hotspot's Interaction.

    That it works for isOpen on its own isn't clear - but the ActionList won't end if the variable cannot be found. It may be that it can't be found either, but the ActionList is carrying on regardless.

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.