BIS fnc pulsate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(21 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= Math


<!---|arg= local |Multiplayer Arguments=--->
|descr= Pulsates a value from 0 to 1.


<!---|eff= local |Multiplayer Effects=--->
|s1= [frequency] call [[BIS_fnc_pulsate]]


| <pre>/*
|p1= frequency: [[Number]] - the frequency in Hz, 1 / _frequency = 0.1 second is the period
Author: Nelson Duarte <@Nelson_G_Duarte>


Description:
|r1= [[Number]]
Pulsates a value from 0 to 1


Parameter(s):
|x1= <sqf>200 call BIS_fnc_pulsate; // 0.113001</sqf>
_this select 0: Float - The frequency in Hz, 1 / _frequency = 0.1 second is the period


Returns:
|seealso=
Nothing
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=
 
|[] call [[BIS_fnc_pulsate]]|Syntax=
 
|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
 
|Datatype - description|Return value=
 
|x1= <code></code>|Example 1=
 
| |See also=
}}
}}
[[Category:Function Group: Math|{{uc:pulsate}}]]
[[Category:Functions|{{uc:pulsate}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:pulsate}}]]

Latest revision as of 16:51, 8 November 2023

Hover & click on the images for description

Description

Description:
Pulsates a value from 0 to 1.
Execution:
call
Groups:
Math

Syntax

Syntax:
[frequency] call BIS_fnc_pulsate
Parameters:
frequency: Number - the frequency in Hz, 1 / _frequency = 0.1 second is the period
Return Value:
Number

Examples

Example 1:
200 call BIS_fnc_pulsate; // 0.113001

Additional Information

See also:
See also needed

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