Difference between revisions of "spawn"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
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

Introduced with Armed Assault version 2.4
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
2.4

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

Syntax

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

Examples

Example 1:
Example needed

Additional Information

Multiplayer:
-
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section