BIS fnc moduleFDFadeMarker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^<]+)<\/code>" to "<sqf>$1</sqf>")
 
(7 intermediate revisions by the same user not shown)
Line 8: Line 8:
|descr= Gradually change the alpha of the given marker.
|descr= Gradually change the alpha of the given marker.


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


|p1= markerName: [[String]]
|p1= markerName: [[String]]
Line 21: Line 21:


|x2= Creates a pulsating marker:
|x2= Creates a pulsating marker:
<code>[] spawn  
<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;
};
};
["tankMarker", 0] [[call]] [[BIS_fnc_moduleFDFadeMarker]];
["tankMarker", 0] call BIS_fnc_moduleFDFadeMarker;
};</code>
};</sqf>


|seealso= [[markerAlpha]] [[setMarkerAlpha]]
|seealso= [[markerAlpha]] [[setMarkerAlpha]]
}}
}}

Latest revision as of 17: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