Forum rules - please read before posting.

Influencing correct instances via script?

I'm trying to see if I can make some farming mechanics with AC.

I currently have a custom script for growing plants but I'm having difficulties deleting the correct instances when clicking on the grown plants in order to harvest them. I tried using action list parameters but I don't know if I'm doing it correctly or if it's even possible.

Comments

  • So you have a Hotspot with an interaction that runs the Object: Add or remove Action to remove it?

    Yes, parameters will be necessary here. Define a GameObject parameter, and have it override the Action's Object to remove field.

    Back to the Hotspot, attach the Set Interaction Parameters component, and use it to assign the Interaction's GameObject parameter to the object you want to remove.

  • Right, I was just missing the Set Interaction Parameters component. Thanks Chris!

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.