BIS fnc moduleFDFadeMarker: Difference between revisions
Jump to navigation
Jump to search
m (fixed example 2) |
(fixed example and execution method) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [markerName, alpha] | | [markerName, alpha] spawn [[BIS_fnc_moduleFDFadeMarker]] |Syntax= | ||
|p1= markerName: [[String]] |Parameter 1= | |p1= markerName: [[String]] |Parameter 1= | ||
Line 17: | Line 17: | ||
| [[Boolean]] - [[true]] when done |Return value= | | [[Boolean]] - [[true]] when done |Return value= | ||
|exec= spawn |= Execution | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[" | |x1= <code>["tankMarker", 0.25] [[spawn]] [[BIS_fnc_moduleFDFadeMarker]];</code> |Example 1= | ||
|x2= <code>[] spawn | |x2= <code>[] spawn | ||
Line 27: | Line 29: | ||
["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; | |||
}; | }; | ||
};</code>Creates a pulsating marker |Example 2= | };</code>Creates a pulsating marker |Example 2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 10:00, 3 July 2018
Description
- Description:
- Gradually change the alpha of the given marker.
- Execution:
- spawn
- Groups:
- Uncategorised
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:
[] spawn { while { alive enemyTank } do { ["tankMarker", 1] call BIS_fnc_moduleFDFadeMarker; ["tankMarker", 0] call BIS_fnc_moduleFDFadeMarker; sleep 0.05; }; };
Creates a pulsating marker
Additional Information
- See also:
- markerAlphasetMarkerAlpha
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