BIS fnc moduleFDFadeMarker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(fixed example and execution method)
m (Text replacement - "<code>([^<]+)<\/code>" to "<sqf>$1</sqf>")
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Modules - Firing Drills
____________________________________________________________________________________________


| Gradually change the alpha of the given marker. |Description=
|descr= Gradually change the alpha of the given marker.
____________________________________________________________________________________________


| [markerName, alpha] spawn [[BIS_fnc_moduleFDFadeMarker]] |Syntax=
|s1= [markerName, alpha] spawn [[BIS_fnc_moduleFDFadeMarker]]


|p1= markerName: [[String]] |Parameter 1=
|p1= markerName: [[String]]


|p2= alpha: [[Number]] - wanted marker alpha |Parameter 2=
|p2= alpha: [[Number]] - wanted marker alpha


| [[Boolean]] - [[true]] when done |Return value=
|r1= [[Boolean]] - [[true]] when done


|exec= spawn |= Execution
|exec= spawn
____________________________________________________________________________________________


|x1= <code>["tankMarker", 0.25] [[spawn]] [[BIS_fnc_moduleFDFadeMarker]];</code> |Example 1=
|x1= <sqf>["tankMarker", 0.25] spawn BIS_fnc_moduleFDFadeMarker;</sqf>


|x2= <code>[] spawn  
|x2= Creates a pulsating marker:
<sqf>[] spawn  
{
{
  [[while]] { [[alive]] enemyTank } [[do]]
while { alive enemyTank } do
  {
{
["tankMarker", 1] [[call]] [[BIS_fnc_moduleFDFadeMarker]];
["tankMarker", 1] call BIS_fnc_moduleFDFadeMarker;
["tankMarker", 0] [[call]] [[BIS_fnc_moduleFDFadeMarker]];
["tankMarker", 0] call BIS_fnc_moduleFDFadeMarker;
    [[sleep]] 0.05;
sleep 0.05;
  };
};
};</code>Creates a pulsating marker |Example 2=
["tankMarker", 0] call BIS_fnc_moduleFDFadeMarker;
____________________________________________________________________________________________
};</sqf>


| [[markerAlpha]], [[setMarkerAlpha]] |See also=
|seealso= [[markerAlpha]] [[setMarkerAlpha]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:moduleFDFadeMarker}}]]
[[Category:Function Group: ModuleFiringDrills|{{uc:moduleFDFadeMarker}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:moduleFDFadeMarker}}]]

Latest revision as of 18:11, 13 July 2022

Hover & click on the images for description

Description

Description:
Gradually change the alpha of the given marker.
Execution:
spawn
Groups:
Modules - Firing Drills

Syntax

Syntax:
[markerName, alpha] spawn BIS_fnc_moduleFDFadeMarker
Parameters:
markerName: String
alpha: Number - wanted marker alpha
Return Value:
Boolean - true when done

Examples

Example 1:
["tankMarker", 0.25] spawn BIS_fnc_moduleFDFadeMarker;
Example 2:
Creates a pulsating marker:
[] spawn { while { alive enemyTank } do { ["tankMarker", 1] call BIS_fnc_moduleFDFadeMarker; ["tankMarker", 0] call BIS_fnc_moduleFDFadeMarker; sleep 0.05; }; ["tankMarker", 0] call BIS_fnc_moduleFDFadeMarker; };

Additional Information

See also:
markerAlpha setMarkerAlpha

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