scudState: 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|SCUDSTATE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SCUDSTATE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SCUDSTATE]]
[[Category:Scripting Commands ArmA|SCUDSTATE]]


| ofp |= Game name


<h2 style="color:#000066">'''scudState ''scudname'''''</h2>
|1.28|= Game version
____________________________________________________________________________________________


| Current state of given Scud launcher. Following states are recognized: Note: Non-integral values are used to indicate transition between states. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''scudState''' scudname |= Syntax


'''scudname:''' [[Object]]
|p1= scudname: [[Object]] |= Parameter 1


'''Type of returned value:'''
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>? scudState scudOne >= 3 : [[hint]] "RUN!!!!"</pre> |= Example 1
____________________________________________________________________________________________


[[Number]]
|  |= See also


'''Compatibility:'''
}}


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


'''Description:'''
<!-- Note Section END -->
</dl>


Current state of given '''Scud launcher'''.
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


Following states are recognized:
Note that this command does not make the scud do anything. It simply checks to see what state the scud is in. To make the scud be upright or launch you need to use an action. e.g. scud1 [[action]] ["scud launch"]
 
[[Category:Scripting Commands|SCUDSTATE]]
* '''0''' - No activity
[[Category:Scripting Commands OFP 1.96|SCUDSTATE]]
* '''1''' - Launch preparation
[[Category:Scripting Commands OFP 1.46|SCUDSTATE]]
* '''2''' - Launch prepared
[[Category:Scripting Commands ArmA|SCUDSTATE]]
* '''3''' - Ignition
* '''4''' - Launched
 
'''Note:''' Non-integral values are used to indicate transition between states.
 
 
'''Example:'''
 
? '''scudState''' scudOne >= 3 : [[hint]] "RUN!!!!"
 
 
 
'''Comments:'''
 
Note that this command does not make the scud do anything.
 
It simply checks to see what state the scud is in.
 
To make the scud be upright or launch you need to use an action.
 
'''e.g.''' scud1 [[action]] ["scud launch"]

Revision as of 23:00, 1 August 2006

Hover & click on the images for description

Description

Description:
Current state of given Scud launcher. Following states are recognized: Note: Non-integral values are used to indicate transition between states.
Groups:
Uncategorised

Syntax

Syntax:
scudState scudname
Parameters:
scudname: Object
Return Value:
Number

Examples

Example 1:
? scudState scudOne >= 3 : [[hint]] "RUN!!!!"

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

Old Notes (temporary):

Note that this command does not make the scud do anything. It simply checks to see what state the scud is in. To make the scud be upright or launch you need to use an action. e.g. scud1 action ["scud launch"]