The taskCompleted script doesn't appear to work with the Task Modules.
- Legacy ID
Create a task with Modules with ID task1 and set for it to complete once a trigger has been activated (just a once present trigger).
Then set an End Trigger which activates upon taskCompleted task1.
Complete your task in-game and the End Trigger won't work. However, if you instead use triggerActivated script it works fine.