createSimpleTask: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(populated with empty template)
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| (description) |= Description
| Creates a new [[Task]] |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''(command)''' |= Syntax
| [[Task]] <nowiki>=</nowiki> [[Object]] '''createSimpleTask''' [[String]]|= Syntax


|p1= |= PARAMETER1  
|p1= [[Object]] - of subtype ''Unit'' - Unit to add this new task|= PARAMETER1  


|p2= |= PARAMETER2  
|p2= [[String]] - Taskname|= PARAMETER2  


|p3= |= PARAMETER3
| [[Task]] - the new task|= RETURNVALUE


| |= RETURNVALUE


 
|x1= <code>currentTask <nowiki>=</nowiki> player createSimpleTask "NewTask";</code>|= EXAMPLE1  
|x1= <code>(example)</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[taskState]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 17:36, 4 June 2009

Hover & click on the images for description

Description

Description:
Creates a new Task
Groups:
Uncategorised

Syntax

Syntax:
Task = Object createSimpleTask String
Parameters:
Object - of subtype Unit - Unit to add this new task
String - Taskname
Return Value:
Task - the new task

Examples

Example 1:
currentTask = player createSimpleTask "NewTask";

Additional Information

See also:
taskState

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section