Garry's Mod Wiki

TimedCos

TimedCos

number TimedCos( number frequency, number min, number max, number offset )

Description

Returns a cosine value that fluctuates based on the current time

Arguments

1 number frequency
The frequency of fluctuation
2 number min
Minimum value
3 number max
Maxmimum value
4 number offset
Offset variable that doesn't affect the rate of change, but causes the returned value to be offset by time

Returns

1 number
Cosine value

Special Pages


Wikis

?

Render Time: 63ms

DB GetPage 44
Generate Html 5
SaveChanges (1) 5
Render Body 0
Render Sidebar 7