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


| ofp |= Game name


<h2 style="color:#000066">'''''camera'' camCommand ''command'''''</h2>
|1.00|= Game version


|arg= local |= Arguments in MP


'''Operand types:'''
|eff= local |= Effects in MP
____________________________________________________________________________________________


'''camera:''' [[Object]]
| Execute a command on the given camera/seagull object. On all types "manual on" and "manual off" can be used, which switch if the player is able to control the object's movement via the keyboard or not.For cameras there are the additional commands "inertia on" and "inertia off", which regulate if the camera movements strictly correspond to the control keys. With "inertia on" the camera will slowly slow down when the "forward" key on the keyboard is released, while with "inertia off" the camera stops at the moment that the key isn't pressed anymore.The commands "landed" and "airborne" can be used on seagulls and control if they land or fly. When you execute camCommand "landed" on a flying seagull, it will land and sit on the floor until you call camCommand "airborne".The camCommand changes are conducted immediately, the command doesn't wait for [[camCommit]]. |= Description
____________________________________________________________________________________________


'''command:''' [[String]]
| object '''camCommand''' command |= Syntax


'''Type of returned value:'''
|p1= object: [[Object]] - object of type "camera" or "seagull" |= Parameter 1


[[Nothing]]
|p2= command: [[String]] - one of "manual on", "manual off", "inertia on", "inertia off", "landed" and "airborne" corresponding to the description above. |= Parameter 2


'''Description:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_cam camCommand "manual on"</pre> |= Example 1
____________________________________________________________________________________________


Execute '''command''' on given '''camera / actor''' object.
|  |= See also


For all types '''"manual on"''' and '''"manual off"''' commands are recognised.
}}


For '''"camera"''' type, command is one of: '''"inertia on"''', '''"inertia off"'''.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


For seagull, command is one of: '''"landed"''', '''"airborne"'''.
<!-- Note Section END -->
</dl>


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


'''Example:'''
[[Category:Scripting Commands|CAMCOMMAND]]
 
[[Category:Scripting Commands OFP 1.96|CAMCOMMAND]]
_camera '''camCommand''' '''"Manual on"'''
[[Category:Scripting Commands OFP 1.46|CAMCOMMAND]]
[[Category:Scripting Commands ArmA|CAMCOMMAND]]

Revision as of 22:30, 1 August 2006

Hover & click on the images for description

Description

Description:
Execute a command on the given camera/seagull object. On all types "manual on" and "manual off" can be used, which switch if the player is able to control the object's movement via the keyboard or not.For cameras there are the additional commands "inertia on" and "inertia off", which regulate if the camera movements strictly correspond to the control keys. With "inertia on" the camera will slowly slow down when the "forward" key on the keyboard is released, while with "inertia off" the camera stops at the moment that the key isn't pressed anymore.The commands "landed" and "airborne" can be used on seagulls and control if they land or fly. When you execute camCommand "landed" on a flying seagull, it will land and sit on the floor until you call camCommand "airborne".The camCommand changes are conducted immediately, the command doesn't wait for camCommit.
Groups:
Uncategorised

Syntax

Syntax:
object camCommand command
Parameters:
object: Object - object of type "camera" or "seagull"
command: String - one of "manual on", "manual off", "inertia on", "inertia off", "landed" and "airborne" corresponding to the description above.
Return Value:
Nothing

Examples

Example 1:
_cam camCommand "manual on"

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