Update stun authored by Lxlp's avatar Lxlp
...@@ -6,21 +6,16 @@ wrongly!) ...@@ -6,21 +6,16 @@ wrongly!)
## Attributes ## Attributes
| Attribute | Aliases | Description | Default Value | | Attribute | Aliases | Description | Default |
|---------------------|---------|--------------------------------------------------------------------------------------------------------------|---------------| |-----------|-----------|----------------------------------------------------------------------|---------|
| duration | d | The duration (in ticks) the stun will last | |
| stopai | ai | Removes entity AI while stunned | false | | stopai | ai | Removes entity AI while stunned | false |
| gravity | g | Remove gravity from target when stunned (1.9+) | 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 | | 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 | | 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 | > This mechanic inherits every attribute of the [Aura] mechanic
| CancelOnTakeDamage | cotd | Cancels the stun if entity with the stun takes any sort of damage. | false | >> - The `interval` attribute is **set** at `1`
| 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 |
> Remember to use the aura's `duration` attribute to set a duration for the stun
## Examples ## Examples
Stuns the target for 3 seconds, target cannot rotate. Stuns the target for 3 seconds, target cannot rotate.
...@@ -29,3 +24,7 @@ ExampleSkill: ...@@ -29,3 +24,7 @@ ExampleSkill:
Skills: Skills:
- stun{d=60;f=false} @target - stun{d=60;f=false} @target
``` ```
<!-- LINKS -->
[aura]: /skills/mechanics/aura
\ No newline at end of file