Registers the operator command /CharTransfer (aliases /Transfer, /PlyTransfer), which moves the target character to another faction through that faction's OnTransferred callback.

Summary

Methods

Moves the target character to another faction; arguments are the name, the faction and optional data.

Methods

COMMAND:OnRun(player, arguments)

shared gamemodes/catwork/gamemode/core/commands/sh_chartransfer.lua:16

Moves the target character to another faction; arguments are the name, the faction and optional data.

The faction must define OnTransferred, which receives the optional third argument; the character is then reloaded in the new faction.

Parameters

  • player
  • arguments

Defined in