RESOLVED: Trigger not working correctly in perform mode

Hi everyone!

I’m trying to make a mini game that give you points every time you hit an object, I’m using a lock (a value from a CHOP) to prevent many hits during the animation of the hit. Everything works fine when I view the project in a window but when I use Perform mode the value of the trigger CHOP I’m using to lock the object doesn’t return to 0 and prevents further hits from being detected

Does anyone else had this problem before? Am I missing something?

I’m using TD 099 64-Bit Build 2017.10000 (Windows)

Here is a file to test this behavior
notReseting.8.toe (6.95 KB)

The issue here is that the lock op doesn’t cook unless there something is using its data, and from you setup, the data is only requested occasionally when in Perform mode. In the network editor, your viewer is on, so that is why the chop is updating every frame. You can set the lock op to Cook Type = Always so the value will be up to date whenever you need it.

You can read a bit more about cooking here:
[url]https://www.derivative.ca/wiki099/index.php?title=Cook[/url]

Oh, I didn’t knew that

Thanks!