Difference between revisions of "BIS fnc vectorDirAndUpRelative"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m (Text replacement - " <nowiki>[</nowiki>" to " [<nowiki/>")
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:BIS_fnc_vectorDirAndUpRelative}}
 
{{DISPLAYTITLE:BIS_fnc_vectorDirAndUpRelative}}
{{Function|=
+
{{Function|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma3dev |=
+
| arma3 |Game name=
|1.65|=
+
|1.66|Game version=
  
|arg= |= MPARGUMENTS
+
|arg= |MPARGUMENTS=  
  
|eff= |= MPEFFECTS
+
|eff= |MPEFFECTS=  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 16: Line 16:
 
| [object1, object2, visual] call '''BIS_fnc_vectorDirAndUpRelative''' |=
 
| [object1, object2, visual] call '''BIS_fnc_vectorDirAndUpRelative''' |=
  
|p1= object1: [[Object]] |=
+
|p1= object1: [[Object]] |Parameter1=
|p2= object2: [[Object]] |=
+
|p2= object2: [[Object]] |Parameter2=
|p3= visual (Optional): [[Boolean]] - if true - result is in render scope, false - simulation scope. Default: true|=
 
  
| [[Array]] in format <nowiki>[</nowiki>[[vectorDir]], [[vectorUp]]] |= Return value
+
|p3= visual (Optional): [[Boolean]] - if [[true]] - result is in render scope, [[false]] - simulation scope. Default: [[true]]|=
  
|x1=<code>_vectorDirAndUp = [tank, car] [[call]] [[BIS_fnc_vectorDirAndUpRelative]];</code>|= EXAMPLE1
+
| [[Array]] in format [<nowiki/>[[vectorDir]], [[vectorUp]]] |RETURNVALUE=
 +
 
 +
|x1=<code>_vectorDirAndUp = [tank, car] [[call]] [[BIS_fnc_vectorDirAndUpRelative]];</code>|EXAMPLE1=  
 
__________
 
__________
  
| [[vectorDir]], [[vectorUp]], [[setVectorDirAndUp]] |= SEEALSO
+
| [[BIS_fnc_attachToRelative]], [[BIS_fnc_weaponDirectionRelative]], [[vectorDir]], [[vectorUp]], [[setVectorDirAndUp]] |SEEALSO=  
  
|  |= MPBEHAVIOUR
+
|  |MPBEHAVIOUR=  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
}}
 
}}
Line 39: Line 40:
 
</dl>
 
</dl>
  
[[Category:{{Name|arma3}}: Functions|{{uc:vectorDirAndUp}}]]
+
[[Category:{{Name|arma3}}: Functions|{{uc:vectorDirAndUpRelative}}]]
 +
[[Category:Functions|{{uc:vectorDirAndUpRelative}}]]

Latest revision as of 11:28, 19 March 2020

Introduced with Arma 3 version 1.661.66
Hover & click on the images for descriptions

Description

Description:
Returns vectorDirAndUp of object 1 relative to object 2

Syntax

Syntax:
[object1, object2, visual] call BIS_fnc_vectorDirAndUpRelative
Parameters:
object1: Object
object2: Object
visual (Optional): Boolean - if true - result is in render scope, false - simulation scope. Default: true
Return Value:
Array in format [vectorDir, vectorUp]

Examples

Example 1:
_vectorDirAndUp = [tank, car] call BIS_fnc_vectorDirAndUpRelative;

Additional Information

Execution:
call
See also:
BIS_fnc_attachToRelativeBIS_fnc_weaponDirectionRelativevectorDirvectorUpsetVectorDirAndUp

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.


Bottom Section