G.TimedSin

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.TimedSin]G.TimedSin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrint a timed sine into console
Used onNewerShared.png
Code
print( TimedSin( 10, 0, 3, -5 ) )
OutputA timed sine 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