setUserMFDvalue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 19: Line 19:


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
| s2= vehicle '''setUserMFDvalue''' MFDColor |= Syntax
|p21= vehicle: [[Object]] - an vehicle with MFD |= Parameter 1
|p22= MFDColor: [[Array]] - in format [r, g, b, a] |= Parameter 2
| r2= [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code> BIS_Plane [[setUserMFDvalue]] [0,1]; // user0 in MFD will return 1</code> |= Example 1
|x1= <code> BIS_Plane [[setUserMFDvalue]] [0,1]; // user0 in MFD will return 1</code> |= Example 1
|x2= Change MFD color to red: <code> BIS_Plane [[setUserMFDvalue]] [1,0,0,1];</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 20:53, 25 July 2017

Hover & click on the images for description

Description

Description:
Store user value in MFD, limit is 10, user0...user9.
Groups:
Uncategorised

Syntax

Syntax:
vehicle setUserMFDvalue [index, value]
Parameters:
vehicle: Object - an vehicle with MFD
index: Number - index of custom MFD user actions
value: Number - value which should custom source return in MFD
Return Value:
Nothing

Alternative Syntax

Syntax:
vehicle setUserMFDvalue MFDColor
Parameters:
vehicle: Object - an vehicle with MFD
MFDColor: Array - in format [r, g, b, a]
Return Value:
Nothing

Examples

Example 1:
BIS_Plane setUserMFDvalue [0,1]; // user0 in MFD will return 1
Example 2:
Change MFD color to red: BIS_Plane setUserMFDvalue [1,0,0,1];

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