Forum rules - please read before posting.

Knowing if the player activated an Action List

edited July 2019 in Technical Q&A


There are two ways action lists can be run in my game;

  • Most are initiated by player actions
  • Some, might be setup to run in the scene (OnStart..etc)

Are there ways to know if an actionlist has been initiated by a player? Basically I'm interested in flagging and tracking action lists the player has begun and which end. I don't want my tracking however to become confused by other Action Lists which may be running and ending in the scene.



  • You can hook into the OnBeginActionList custom event to record when an ActionList is run.

  • @ChrisIceBox Yeah, that was my first thought as well, but that will fire when any action list begins, correct? I can't figure out how I can use that to know if an action list has been started specifically by a player action.

  • What do you mean specifically by a "player action"? As in, a Hotspot being interacted with? OnHotspotInteract could be used in that case.

  • edited July 2019

    @ChrisIceBox THERE WE GO. Yes. That might be the way forward!

    The very best of days to you sir.

  • Alright, so, I've implemented this solution for now;

    Here's the clincher - I don't care about all action lists. Is there a way I could set a parameter on an action list and read that in at this point?


  • edited August 2019

    Ah, reading the manual and what do I discover? Action lists can have parameters set on them. This sounds perfect.

    I'm still a little inexperienced with handling lists in C#, how via script would I check to see if an action list has a parameter setup on it?

  • edited August 2019

    For now I'm doing a actionList.parameters.Count. If it's greater than 0 then I can tell an action list has parameters on it at all which is enough to keep me going for now!

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!