Garry's Mod Wiki

Revision Difference

PLAYER:StartMove#564818

<function name="StartMove" parent="PLAYER" type="hook"> <description> Called from <page>GM:CreateMove</page>. <warning>This hook will not work if the current gamemode overrides <page>GM:SetupMove</page> and does not call this hook.</warning> <note>This hook is run after the <page>drive.StartMove</page> has been called.</note> </description> <realm>Client</realm>⤶ <realm>Shared</realm>⤶ <file line="85">gamemodes/base/gamemode/player_class/player_default.lua</file> <args> <arg name="mv" type="CMoveData"></arg>⤶ <arg name="cmd" type="CUserCmd"></arg>⤶ <arg name="mv" type="CMoveData">The move data to override/use</arg>⤶ <arg name="cmd" type="CUserCmd">The command data</arg>⤶ </args> <rets> <ret name="" type="boolean">Return true to prevent default action</ret> </rets> </function>