util.ScreenShake
From GMod Wiki
Revision as of 19:15, 29 October 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax |
util.ScreenShake( Vector Pos, Float amp, Float Freq, Float Duration, Float Radius ) Where is this used? |
Description: | |
Makes the screen shake. | |
Returns: | nil |
Part of Library: | Util |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Util.ScreenShake]Util.ScreenShake [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This will shake the screen, from the position 0 0 0 and 5000 units away, with 5 amp, frequency 5, for 10 seconds. |
---|---|
Used on | |
Code | util.ScreenShake( Vector(0,0,0), 5, 5, 10, 5000 ) |
Output | N/A |
Note
- Even if this function is shared, it seems not to have any effect clientside