Hi Chris,
Can Trigger's actionlist turn on object's component var?
I have an object with collider, trigger and component var (a boolean), and I would like if the object be hit with any object, it will change the component var of the object to true. I set the trigger action list source to asset and already link the collider parameter with the trigger action list parameter (component variable). The action list start with playing a dialogue and then turn on the boolean component var of the object. In test, the dialogue can be played but the object's component var can't be changed? So what is the problem? Would you pls advise, thanks.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Is the Variables component attached to the object that the Trigger is colliding with?
If so, and you're assigning that object as a GameObject parameter via the Trigger's Collider parameter field, then you can use that parameter to override the Variable: Set Action's Variable field after setting its Source to Component.
Once done, you'll need to manually assign the variable's ID and type in the Action. So long as this is consistent for any object that the Trigger can collide with, though, it'll get updated when the Trigger runs.
Otherwise, screenshots of both the object/Trigger and the ActionList will help clarify the situation.