• 🏆 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!

[JASS] Scripted attacks?

Status
Not open for further replies.
I have a small problem.
I want to be able to replace a units standard attack with a scripted one, so that i may apply, for example, premade attack patterns, or use lighting effects and channeled standard attacks.

Thing is, i want the units damage to show properly in the UI.
Preferably, i would like to detect the attack with something like an orb, and then stop the actual damage from occur while i trigger my own attack. But i don't really know how to do that.
Can anyone help me?
 
Well, i am using a struct based damage listener made by Dr Super Good, but wouldn't it cause a lot of lag, just having to attatch a trigger to each and every unit to see if they're hit?

Also, does that mean i should detect the attack through the triggering of the damage detect system, or should i still use orbs for that?
 
Status
Not open for further replies.
Top