Forum rules - please read before posting.

Array Parameter in Action List

edited November 2017 in Technical Q&A
Is it possible to add a parameter of a single type (Game Object) as an array? For example, my action list turns off an array of hotspots and this pretty much happens all the time in the games that I make, though there is a workaround it via grouping the hotspots then sending the whole group to the disable hotspot, there are some other applications to it too so I just want to learn it if it's possible. Sorry if I have too many questions :(

Comments

  • edited November 2017
    Afraid not.  In cases like this, where you want to update logic components in bulk, or re-run ActionLists many times with different parameter values, it's often best to just script it.  The scripting guide, together with custom Actions, make it possible to do some powerful stuff if you have experience with coding.

    That said, one potential way around this would be to have the ActionList: Set parameter Action allow you to copy the value of one parameter onto another.  You could then feasibly set "parameter 0" to parameter 1, then run the ActionList in question, then set it to parameter 2 and run it again, etc.  I'll see if such a feature would be feasible to implement.
  • Thanks Chris! :) The workaround you described is something I'll definitely do next time, thanks for the links I'll check them out. Thanks again and have a nice day :)
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.