BIS fnc dirTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(creation)
Line 1: Line 1:
{{Function|=
____________________________________________________________________________________________


{{Function|= Comments
| arma2 |=
____________________________________________________________________________________________
|1.00|=


| arma2 |= Game name
|arg= |= MPARGUMENTS


|1.00|= Game version
|eff= |= MPEFFECTS
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>
| Function which returns vector direction from pos1 to pos2.
/************************************************************
Direction To


Parameters: [object or position 1, object or position 2]
|=
____________________________________________________________________________________________


Returns the compass direction from object/position 1 to
| [param1, param2] call '''BIS_fnc_spawnGroup''' |=
object/position 2. Return is always >=0 <360.


Example: [player, getpos dude] call BIS_fnc_dirTo
|p1= param1 - vector starting point, [[Position]] '''or''' [[Object]] |=
************************************************************/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p2= param1 - vector ending point, [[Position]] '''or''' [[Object]] |=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_dirTo]]; --> |= Syntax
| [[Number]] |= Return value


|p1= |= Parameter 1
|x1= sets unit1 in the direction of unit2
<code>unit1 [[setDir]] [unit1, unit2] [[call]] BIS_fnc_dirTo</code>|= EXAMPLE1
__________


| |= Return value
| [[BIS_fnc_help]] |= SEEALSO
____________________________________________________________________________________________


|x1= <code></code> |=  
| |= MPBEHAVIOUR
____________________________________________________________________________________________
____________________________________________________________________________________________
}}


| |= See also


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


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Geometry|{{uc:dirTo}}]]
[[Category:Functions|{{uc:dirTo}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:dirTo}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:dirTo}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:dirTo}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:dirTo}}]]

Revision as of 22:14, 18 March 2012

Hover & click on the images for description

Description

Description:
Function which returns vector direction from pos1 to pos2.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[param1, param2] call BIS_fnc_spawnGroup
Parameters:
param1 - vector starting point, Position or Object
param1 - vector ending point, Position or Object
Return Value:
Number

Examples

Example 1:
sets unit1 in the direction of unit2 unit1 setDir [unit1, unit2] call BIS_fnc_dirTo

Additional Information

See also:
BIS_fnc_help

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


Bottom Section