From Mod Wiki
integer index -- Index of the task to use. entity (cannot be null) owner -- Entity which the task will be associated with.
- Task objects are of type sdPlayerTask.
Allocates a mission and returns the object. If the allocation fails for any reason the result will be null.