disableUserInput: Difference between revisions

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


| ofp |= Game name


<h2 style="color:#000066">'''disableUserInput ''disable'''''</h2>
|1.00|= Game version


|eff= local |= Effects in MP
____________________________________________________________________________________________


'''Operand types:'''
| Disable and enable the keyboard and mouse input, usually used during cutscenes. Be careful with the usage of this command, always remember to enable the user input again, as once the user input is disabled, you can only shut down OFP but not exit the mission with escape. |= Description
____________________________________________________________________________________________


'''disable:''' [[Boolean]]
| '''disableUserInput''' state |= Syntax


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>disableUserInput true
; cutscene


[[Nothing]]
disableUserInput false</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
|  |= See also


Disable user input.
}}


This is normally used in cutscenes to disable players controls.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


'''disableUserInput''' [[true]]
[[Category:Scripting Commands|DISABLEUSERINPUT]]
[[Category:Scripting Commands OFP 1.96|DISABLEUSERINPUT]]
[[Category:Scripting Commands OFP 1.46|DISABLEUSERINPUT]]
[[Category:Scripting Commands ArmA|DISABLEUSERINPUT]]

Revision as of 00:46, 2 August 2006

Hover & click on the images for description

Description

Description:
Disable and enable the keyboard and mouse input, usually used during cutscenes. Be careful with the usage of this command, always remember to enable the user input again, as once the user input is disabled, you can only shut down OFP but not exit the mission with escape.
Groups:
Uncategorised

Syntax

Syntax:
disableUserInput state
Return Value:
Nothing

Examples

Example 1:
disableUserInput true
; cutscene

disableUserInput false

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