RevokePlayerSpell
revokePlayerSpell
Revokes an authoritative spell grant from a player.
Syntax
bool revokePlayerSpell(int playerId, int|string spell)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player to update. |
spell |
string | yes | A spell id or stable key. |
Returns
Returns true when the spell is revoked; otherwise returns false.
Examples
Remove Fire Arrow from a player:
revokePlayerSpell(playerId, SPELL.FIRE_ARROW)
Notes
- Available only in server-side resource scripts.