util.ScreenShake

From Garry's Mod
Jump to: navigation, search
 util.ScreenShake( )

Contents

Description

Makes the screen shake

Arguments

Vector pos

The origin of the effect.

NOTE

Does nothing on client.

Arguments

number amplitude

The strength of the effect

Arguments

number frequency

The frequency of the effect in hz

Arguments

number duration

The duration of the effect in seconds

Arguments

number radius

The range from the origin within which views will be affected, in Hammer Units

NOTE

Does nothing on client.

Examples

Example

This will shake the screen, from the position 0 0 0 and 5000 units away, with 5 amp, frequency 5, for 10 seconds.

util.ScreenShake( Vector(0,0,0), 5, 5, 10, 5000 )


Personal tools
Navigation