• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

HIVE

Uncle
Uncle
GUI (the basic trigger editor) is an interface that gives you access to about 75% of the functions (Events/Conditions/Actions) available in Warcraft 3. The other 25% are normally only accessible when you write the code yourself in either Jass/Lua.

That's where Custom Script comes into play. It allows you to write code in your GUI triggers which gives you access to all of the functions. It makes more sense once you realize that all of your GUI triggers are literally just code hidden behind a shiny interface. That's why you're able to convert your trigger into code.

Here's some useful functions that aren't available in GUI form but are very easy to implement in your GUI triggers:
  • Custom script: call SetUnitSkin() /// This allows you to change a unit's model (has some issues)
  • Custom script: call SetUnitAnimationByIndex() /// This allows you to play a specific animation
  • Custom script: call BlzPauseUnitEx() /// This acts like a Stun
deepstrasz
deepstrasz
What are those issues pertaining the skin native or what's it called?
What's the difference between the last and the GUI Pause Unit?
Top