Good To Know

Tasks are unit-specific. They are created to a unit and not to a client (computer).
For example if you create a task for the player unit then teamSwitch to another unit, this new unit won't have any task.
If you switch back to the original unit, it will have this created task.

⚠

Task creation is local and should be executed on every client that needs it, such as every client that could access the unit.

The value returned by createSimpleTask is a unique handle to the unit's task, returns a handle (variable which refers to the created task). Each task has a unique handle. Even using same line of code on different client will result in a different handle for the "same" task.