BIS fnc briefingAnimate: 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 (Some wiki formatting)
 
(9 intermediate revisions by the same user not shown)
Line 8: Line 8:
|descr= Animate briefing markers.
|descr= Animate briefing markers.


|s1=[markerName, stepId, delay] call [[BIS_fnc_briefingAnimate]]
|s1= [markerName, stepId, delay] call [[BIS_fnc_briefingAnimate]]


|p1= markerName: [[String]] - marker to animate
|p1= markerName: [[String]] - marker to animate
Line 18: Line 18:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>{{codecomment|// given you have 6 markers:
|x1= <sqf>
// given you have 6 markers:
// - "myMarker"
// - "myMarker"
// - "myMarker_0"
// - "myMarker_0"
Line 24: Line 25:
// - "myMarker_2"
// - "myMarker_2"
// - "myMarker_3"
// - "myMarker_3"
// - "myMarker_4"}}
// - "myMarker_4"
for "_i" [[from]] 0 [[to]] 4 [[do]] {
for "_i" from 0 to 4 do {
[[private]] _commit = 1;
private _commit = 1;
["myMarker", 5, _commit] [[call]] [[BIS_fnc_briefingAnimate]];
["myMarker", 5, _commit] call BIS_fnc_briefingAnimate;
[[sleep]] _commit;
sleep _commit;
};</code>
};
</sqf>


|seealso= [[BIS_fnc_briefingInit]]
|seealso= [[BIS_fnc_briefingInit]]
}}
}}

Latest revision as of 12:03, 13 July 2022

Hover & click on the images for description

Description

Description:
Animate briefing markers.
Execution:
call
Groups:
Briefing

Syntax

Syntax:
[markerName, stepId, delay] call BIS_fnc_briefingAnimate
Parameters:
markerName: String - marker to animate
stepId: Number - step ID (steps are invisible markers named <markerName>_<stepId>)
delay: String - commit time (transition duration)
Return Value:
Nothing

Examples

Example 1:
// given you have 6 markers: // - "myMarker" // - "myMarker_0" // - "myMarker_1" // - "myMarker_2" // - "myMarker_3" // - "myMarker_4" for "_i" from 0 to 4 do { private _commit = 1; ["myMarker", 5, _commit] call BIS_fnc_briefingAnimate; sleep _commit; };

Additional Information

See also:
BIS_fnc_briefingInit

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