Garry's Mod Wiki

Tool:SetOperation

  Tool:SetOperation( number operation )

Description

Sets the current operation of the tool. Does nothing clientside. See also Tool:SetStage.

Operations and stages work as follows:

  • Operation 1
    • Stage 1
    • Stage 2
    • Stage 3
  • Operation 2
    • Stage 1
    • Stage 2
    • Stage ...

Arguments

1 number operation
The new operation ID to set.