util.ScreenShake

From GMod Wiki

Revision as of 19:15, 29 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Util.ScreenShake]Util.ScreenShake [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis will shake the screen, from the position 0 0 0 and 5000 units away, with 5 amp, frequency 5, for 10 seconds.
Used onNewerShared.png
Code
util.ScreenShake( Vector(0,0,0), 5, 5, 10, 5000 )
OutputN/A


Note

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox