Forum rules - please read before posting.

Running interaction script for Triggers

edited July 2018 in Technical Q&A
Hi, when I read this page it is cool that AC allows to use scripting for interactions:
https://adventurecreator.org/tutorials/writing-interaction-through-script

Is there a way to do the same for Triggers and Cutscenes?

Also, when scripting a series of actions for AC, can I also use other Unity functions right? Such as:

Instantiate(prefab, new Vector3(Kickstarter.player.position.x + 5f, Kickstarter.player.position.y + 5f, Kickstarter.player.position.z), Quaternion.identity);

?

Thanks for your help.

Comments

  • I realized I can do it by Object > Send Message, the function can even be private. That's really great.
  • You can also give your Cutscene / Trigger a single Object: Call event or Object: Send message Action to trigger your script.
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.