spawn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SPAWN]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SPAWN]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SPAWN]]


| arma |= Game name


<h2 style="color:#000066">''' ''arguments'' spawn ''code'''''</h2>
|2.4|= Game version
____________________________________________________________________________________________


| Starts running a new script (function). The new script (function) is running in parallel, spawn does not wait for it to be done. To check if it finished use [[scriptDone]] |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''spawn''' code |= Syntax


'''arguments:''' [[Anything]]
|p1= code [[Code]] |= Parameter 1


'''code:''' [[Code]]
| [[Script]] |= Return value
____________________________________________________________________________________________


'''Type of returned value:'''
|  |= See also


[[Script]]
}}


'''Compatibility:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Version 2.40 required.
<!-- Note Section END -->
</dl>


'''Description:'''
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SPAWN]]
Starts running a new script. Additional arguments are passed in local _this variable.
[[Category:Scripting Commands OFP Elite |SPAWN]]
 
[[Category:Scripting Commands ArmA|SPAWN]]
The new script is running in parallel, spawn does not wait for it to be done.
 
To check if it finished use [[scriptDone]]

Revision as of 00:51, 2 August 2006

-wrong parameter ("Arma") defined!-2.4
Hover & click on the images for description

Description

Description:
Starts running a new script (function). The new script (function) is running in parallel, spawn does not wait for it to be done. To check if it finished use scriptDone
Groups:
Uncategorised

Syntax

Syntax:
spawn code
Parameters:
code Code
Return Value:
Script

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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