Update stun authored by Lxlp's avatar Lxlp
......@@ -6,21 +6,16 @@ wrongly!)
## Attributes
| Attribute | Aliases | Description | Default Value |
|---------------------|---------|--------------------------------------------------------------------------------------------------------------|---------------|
| duration | d | The duration (in ticks) the stun will last | |
| stopai | ai | Removes entity AI while stunned | false |
| gravity | g | Remove gravity from target when stunned (1.9+) | false |
| facing | face, f | When false, entity cannot rotate or look around when stunned | false |
| noknockback | nokb, kb | When true, entity cannot be knocked back when stunned | false |
| CancelOnGiveDamage | cogd | Cancels the stun if the entity with the stun deals any damage to another entity. | false |
| CancelOnTakeDamage | cotd | Cancels the stun if entity with the stun takes any sort of damage. | false |
| CancelOnDeath | cod | Cancels the stun if the entity with the stun dies. | true |
| CancelOnTeleport | cot | Cancels the stun if the entity with the stun teleports at all whether by another mechanic or server command. | false |
| CancelOnChangeWorld | cocw | Cancels the stun if the entity with the stun changes worlds. (Most times applies to players) | false |
| CancelOnSkillUse | cosu | Cancels the stun if the entity that is stunned uses another skill while the stun is active. | false |
| CancelOnQuit | coq | Cancels the stun if the entity with the stun logs out. (Only really applies to players) | true |
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| stopai | ai | Removes entity AI while stunned | false |
| gravity | g | Remove gravity from target when stunned (1.9+) | false |
| facing | face, f | When false, entity cannot rotate or look around when stunned | false |
| noknockback | nokb, kb | When true, entity cannot be knocked back when stunned | false |
> This mechanic inherits every attribute of the [Aura] mechanic
>> - The `interval` attribute is **set** at `1`
> Remember to use the aura's `duration` attribute to set a duration for the stun
## Examples
Stuns the target for 3 seconds, target cannot rotate.
......@@ -28,4 +23,8 @@ Stuns the target for 3 seconds, target cannot rotate.
ExampleSkill:
Skills:
- stun{d=60;f=false} @target
```
\ No newline at end of file
```
<!-- LINKS -->
[aura]: /skills/mechanics/aura
\ No newline at end of file