Revision Difference
util.ScreenShake#529038
<function name="ScreenShake" parent="util" type="libraryfunc">
<description>Makes the screen shake⤶
<description>Makes the screen shake.⤶
<note>The screen shake effect is rendered by modifying the view origin on the client. If you override the view origin in <page>GM:CalcView</page> you may not be able to see the shake effect.</note></description>
<realm>Shared</realm>
<args>
<arg name="pos" type="Vector">The origin of the effect.
⤶
<note>Does nothing on client.</note></arg>⤶
<arg name="amplitude" type="number">The strength of the effect</arg>⤶
<arg name="frequency" type="number">The frequency of the effect in hz</arg>⤶
<arg name="duration" type="number">The duration of the effect in seconds</arg>⤶
<arg name="radius" type="number">The range from the origin within which views will be affected, in Hammer Units⤶
⤶
<note>Does nothing on client.</note></arg>⤶
<note>Does nothing on client.</note>⤶
</arg>⤶
<arg name="amplitude" type="number">The strength of the effect.</arg>⤶
<arg name="frequency" type="number">The frequency of the effect in hertz.</arg>⤶
<arg name="duration" type="number">The duration of the effect in seconds.</arg>⤶
<arg name="radius" type="number">The range from the origin within which views will be affected, in Hammer units.⤶
<note>Does nothing on client.</note>⤶
</arg>⤶
</args>
</function>
<example>
<description>This will shake the screen, from the position 0 0 0 and 5000 units away, with 5 amp, frequency 5, for 10 seconds.</description>
<code>util.ScreenShake( Vector(0,0,0), 5, 5, 10, 5000 )</code>
⤶
</example> <description>This will shake the screen, from the position 0, 0, 0 (X, Y, Z) and 5000 units away, with 5 amp, frequency 5, for 10 seconds.</description>
<code>util.ScreenShake( Vector(0, 0, 0), 5, 5, 10, 5000 )</code>
</example>