Forum rules - please read before posting.

Call AC Function from Custom Script

Trying to use the following to call an AC actionlistAsset from a custom script, but keep getting syntax errors. I'm using the AC namespace. What am I missing? 

AC.AdvGame.RunActionListAsset (ActionListAsset actionListAsset);

"Runs the ActionList asset file actionListAsset"

Comments

  • Can you paste some of your actual code with a few lines before and after the usage of this method?
  • Have you inserted a valid asset reference inside the brackets?  That line means that the function takes an ActionListAsset parameter, but you have to have one actually declared.

    e.g.:

    AC.ActionListAsset myAsset;
    AC.AdvGame.RunActionListAsset (myAsset);
  • Thanks, Chris.

    Got it.
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.