G.TimedSin
From GMod Wiki
Function | |
Syntax |
TimedSin( Float freq, Float min, Float max, Float offset ) Where is this used? |
Description: | |
Returns a fluctuating sine value. | |
Returns: | Float |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.TimedSin]G.TimedSin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Print a timed sine into console |
---|---|
Used on | |
Code | print( TimedSin( 10, 0, 3, -5 ) ) |
Output | A timed sine with a frequency of 10, a minimum value of 0, a maximum value of 3, and an offset of 5. |
Additional Notes
- TimedSin and TimedCos use the same arguments, and their functions are fundamentally the same. They just use a different math equation.