G.TimedCos
From GMod Wiki
| Function | |
| Syntax | TimedCos( Float  freq, Float  min, Float  max, Float  Float  offset ) Where is this used? | 
| Description: | |
| Returns a fluctuating cosine value. | |
| Returns: | Float | 
| Part of Library: | Global Functions | 
| Realm: |  | 
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.TimedCos]G.TimedCos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
	
Example
| Description | Print a timed cosine into console | 
|---|---|
| Used on |  | 
| Code | print( TimedCos( 10, 0, 3, -5 ) ) | 
| Output | A timed cosine 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.
 
			
			