Forum rules - please read before posting.

self call in action list

Hi, I was wondering if there is a way to have an Action list to use its holding object as self reference.
Like when having a visibility call in an AL, there would be a way to set it to reference it's holding Gameobject. Instead of having to manually set it.

Comments

  • "Holding object" as in the GameObject it's attached to?

    It can be done through custom script:

    GetComponent<AC.ActionList>().GetParameter("MyGameObject").SetValue(gameObject);
    
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.