Event
anticheat:blendshape
ServerFired when a peer changes a blendshape on an entity it does not own
Signal
"anticheat:blendshape"This signal is only fired on the server.
- Trigger — fired when the server rejects data from a peer; it never kicks, your script decides.
- Throttling — one signal per peer and reason per second;
countis the violations since the last signal. - Repeated reports — a single report can be harmless, act on a repeated
count, not the first report. - Kicking — use
core.engine.disconnect_peerto kick a peer.
Arguments
| Type | Name | Description |
|---|---|---|
int | peer_id | Id of the peer that sent the rejected data |
string | reason | Why it was rejected, see below |
int | net_id | Net id of the entity involved |
int | count | Violations of this reason since the last signal, at least 1 |
Reasons
| Reason | Description |
|---|---|
unauthorized | The peer changed a blendshape on an entity it is not the syncer of |
Example
util.event.on("anticheat:blendshape", function(peer_id, reason, net_id, count)
core.engine.print("warn", "Peer " .. peer_id .. " blendshape violation on", net_id, "x" .. count)
end)