Garry's Mod Wiki

Revision Difference

numpad.OnDown#510456

<function name="OnDown" parent="numpad" type="libraryfunc">⤶ <description>⤶ Calls a function registered with <page>numpad.Register</page> when a player presses specified key.⤶ ⤶ See for key released action: <page>numpad.OnUp</page>⤶ </description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="ply" type="Player">The player whose numpad should be watched</arg>⤶ <arg name="key" type="number">The key, corresponding to &lt;page&gt;KEY&lt;/page&gt;</arg>⤶ <arg name="name" type="string">The name of the function to run, corresponding with the one used in &lt;page&gt;numpad.Register&lt;/page&gt;</arg>⤶ <arg name="..." type="vararg">Arguments to pass to the function passed to &lt;page&gt;numpad.Register&lt;/page&gt;.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The impulse ID</ret>⤶ </rets>⤶ </function>⤶ ⤶