G.TimedCos

From GMod Wiki

Revision as of 15:04, 10 May 2010 by Grea$eMonkey (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.TimedCos]G.TimedCos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrint a timed cosine into console
Used onNewerShared.png
Code
print( TimedCos( 10, 0, 3, -5 ) )
OutputA timed cosine with a frequency of 10, a minimum value of 0, a maximum value of 3, and an offset of 5.


Additional Notes

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox