The knockout staff command: knocks the target players out, optionally for a set time. A knocked out player cannot get up by themselves.

Summary

Methods

Knocks every living target out, including the ones who are lying on the ground already, with the caller as the attacker of the knockout hooks, and notifies the staff.

Methods

CMD:on_run(actor, targets, delay)

shared plugins/ragdoll/plugin/commands/sh_knockout.lua:18

Knocks every living target out, including the ones who are lying on the ground already, with the caller as the attacker of the knockout hooks, and notifies the staff.

Parameters

  • actor Player the caller; not valid when run from the server console
  • targets List<Player> players to knock out
  • delay String/Number optional, defaults to 0 seconds after which the targets come to, clamped between 0 and 600; with 0 they stay knocked out until someone gets them up

Defined in