Stun Snippet
IMPORT GUIDE :
1. Enable "Tick the Automatically create unknown variables ..." located at File>Preference>General
2. Import
TimedSpecialEffect v1.x and
PauseUnitEx to your map if any of them is not yet imported.
3. Copy the StunSnippet Folder in the Trigger Editor
4. Configure the StunSnippetConfig trigger according to the comments provided
5. Configure the unit/hero using the ability to have the ability
SNIPPET INFORMATION :
A stun snippet I wrote for the ease of creating stuns with the new BlzUnitPauseEx native. This system easily stuns a unit over a set duration with specific SFX so people can make variations of their stun (freeze, shocked, etc) with ease.
In order to stun a unit, set the following variables:
-
Actions
-

Set StunSnippet__StunnedUnit = (Unit you want to Stun)
-

Set StunSnippet__Duration = (For how long in seconds?)
-

Trigger - Run StunSnippet_TRegister (checking conditions)
StunnedUnit translates to the unit being stunned, while the duration determines how long the stun lasts. This is the most basic use of this snippet.
If you want specific SFX to be used instead of the default twirl over the head, you can add two additional variables to determine them:
-
Actions
-

Set StunSnippet__StunnedUnit = (Unit you want to Stun)
-

Set StunSnippet__Duration = (For how long in seconds?)
-

Set StunSnippet__SFX = Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
-

Set StunSnippet__AttachPoint = origin
-

Trigger - Run StunSnippet_TRegister (checking conditions)
This one will, instead of the twirl, uses the Frost Wyrm freezing breath effect attached to the origin of the unit (usually around center point of the body).
Since this is meant as a snippet for quick stunning, I do not provide additional utilities like
Stun Engine or
Stun System. The only addition I provided as of current is the SFX control, which is something that I personally need for future use.
MEDIA SHOWCASE :
CHANGELOG :
Version 1.3:
- Updated TimedSpecialEffect to v1.8.1
- Added a player message on start to know how to test
Version 1.2:
- Added an alive check so the effect automatically cleaned on death
Version 1.1:
- Updated TimedSpellEffect from v1.5 to v1.7
- Added StunSnippetStart and StunSnippetLoop for users
Version 1.0: Released
CREDIT :
- MyPad for PauseUnitEx
- Ricola3D for the
Classification of GUI, JASS, vJASS Systems as of Today thread