weaponDirection: 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|WEAPONDIRECTION]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |WEAPONDIRECTION]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|WEAPONDIRECTION]]


<new command not populated>
| arma |= Game name


|2.61|= Game version
____________________________________________________________________________________________


<h2 style="color:#000066">'''''vehicle'' weaponDirection ''weaponName'''''</h2>
| Returns the direction that the given weapon is pointing at. |= Description
____________________________________________________________________________________________


| vehicle '''weaponDirection''' weaponName |= Syntax


'''Operand types:'''
|p1= vehicle: [[Object]] |= Parameter 1


'''vehicle:''' [[Object]]
|p2= weaponName: [[String]] |= Parameter 2


'''weaponName:''' [[String]]
| [[Array]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_dir = _vehicle weaponDirection "M16"</pre> |= Example 1
____________________________________________________________________________________________


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


[[Array]]
}}


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


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


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


Returns the direction that the given weapon is pointing at.
[[Category:Scripting Commands|WEAPONDIRECTION]]
 
[[Category:Scripting Commands OFP Elite |WEAPONDIRECTION]]
 
[[Category:Scripting Commands ArmA|WEAPONDIRECTION]]
'''Example:'''
 
_dir = _vehicle '''weaponDirection''' "M16"

Revision as of 23:38, 1 August 2006

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

Description

Description:
Returns the direction that the given weapon is pointing at.
Groups:
Uncategorised

Syntax

Syntax:
vehicle weaponDirection weaponName
Parameters:
vehicle: Object
weaponName: String
Return Value:
Array

Examples

Example 1:
_dir = _vehicle weaponDirection "M16"

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