Forum rules - please read before posting.

Global Variables Being Set Immediately

edited April 25 in Technical Q&A

In Unity 2018.3.9 using Adventure Creator 1.67.4, I'm encountering a problem in which global variables of integers and floats that are supposed to have their values set (or increased) upon objects entering triggers, are actually changing their value instantly upon gameplay starting.
Also, the variable value is only altered when using Rigidbody Collision Detection Method and not the new Transform Position (which is otherwise very useful btw, thanks to Chris for that one).

Edit: It seems the auto-updating of values on start is only happening if the Detection Method is set to Rigidbody Collision set to detect Any Object. It works as intended if you use a set object e.g player.

Comments

  • It seems the auto-updating of values on start is only happening if the Detection Method is set to Rigidbody Collision set to detect Any Object.

    Perhaps the Trigger is detecting some unintended object, then? As it's possible to pass the detected GameObject as a parameter to the Trigger's Actions, you could find out what's triggering it by using the [param:0] token in the ActionList: Comment Action.

  • Ha, it was the "Field of View" of an Emerald AI.

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!