AddDamageRule
Sets the damage rule for a player.
Syntaxโ
AddDamageRule mode @players_affected multiplier "remove_id"? update?
Argumentsโ
| Name | Required | Type | Description |
|---|---|---|---|
mode | Yes | One of the following options: > attacker > receiver > reciever | Indicates whether the damage rule will be applied on all damage dealt by the attacker or on all damage received by the receiver. |
players affected | Yes | Player variable (e.g. @all, @classDPlayers) | |
multiplier | Yes | Any number | |
remove id | No | Any text e.g. "Hello, World!" | The ID of the damage rule. This is to identify this specific damage rule if you later want to remove SPECIFICALLY it later. There can be multiple rules with the same ID. |
update | No | bool (true or false) value | Whether the rule should check for any changes regarding the 'players affected' argument. E.g. when you use 'players affected' = ClassD and 'update' = false, then the damage rule will NOT update when player roles change, meaning that when some ClassD becomes a Guard, their damage rule will STILL apply, even though they are no longer ClassD. |
On a running serverโ
Use serhelp AddDamageRule to inspect the reference generated by your installed SER version.