setUserMFDValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 42: Line 42:
|x4= Hide MFD:<code>Blackfoot [[setUserMFDValue]] [3, 0]; // "user3" - 0</code>
|x4= Hide MFD:<code>Blackfoot [[setUserMFDValue]] [3, 0]; // "user3" - 0</code>


| [[getUserMFDValue]], [[setUserMFDText]], [[getUserMFDText]]
|seealso= [[getUserMFDValue]], [[setUserMFDText]], [[getUserMFDText]]
}}
}}



Revision as of 00:07, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Interaction

Syntax

Syntax:
Syntax needed
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:
Return value needed

Examples

Example 1:
BIS_Plane setUserMFDValue [0,1]; // user0 in MFD will return 1
Example 2:
Set MFD Red:Blackfoot setUserMFDValue [0, 1]; // "user0" - 1 Blackfoot setUserMFDValue [1, 0]; // "user1" - 0 Blackfoot setUserMFDValue [2, 0]; // "user2" - 0 Blackfoot setUserMFDValue [3, 1]; // "user3" - 1
Example 3:
Set MFD pale Blue:Blackfoot setUserMFDValue [0, 0]; // "user0" - 0 Blackfoot setUserMFDValue [1, 0]; // "user1" - 0 Blackfoot setUserMFDValue [2, 1]; // "user2" - 1 Blackfoot setUserMFDValue [3, 0.1]; // "user3" - 0.1
Example 4:
Hide MFD:Blackfoot setUserMFDValue [3, 0]; // "user3" - 0

Additional Information

See also:
getUserMFDValuesetUserMFDTextgetUserMFDText

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