createSimpleTask: Difference between revisions
Jump to navigation
Jump to search
(populated with empty template) |
HeliJunkie (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Creates a new [[Task]] |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| ''' | | [[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 | ||
| | | [[Task]] - the new task|= RETURNVALUE | ||
|x1= <code>currentTask <nowiki>=</nowiki> player createSimpleTask "NewTask";</code>|= EXAMPLE1 | |||
|x1= <code> | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[taskState]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 16:36, 4 June 2009
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