• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Activate both attacks (unit)

Status
Not open for further replies.
Level 4
Joined
Oct 26, 2008
Messages
72
Hi.
I'm not very good at English but I'm going to try to explain the best I can.
I have one unit with two type of attacks, the first one is melee and the second one is piercing. Both attacks are activated in the unit panel (world editor), but in-game that unit just uses its first one.

I don't know If I need some elaborated triggers or the matter is just my ignorance on the basic functions of the world editor, because the thing I want is: when is given the order of attack, if the distance between my unit and the enemy one is longer than 95, that will use its second attack (piercing) and if it's not it will use its first attack (melee).
Is it possible?
Thanks :)

EDIT: Posted in wrong section. Sorry!
 
Last edited:
Level 23
Joined
Apr 16, 2012
Messages
4,041
the fing is, JNGP extends the W3 by hacking it allowing you to use ZINC or vJass but the compiler transforms all the code upon map save to plain Jass so everyone can access the map even without W3
Thats why if you have anything from vJass or Zinc in your map you must save the game before you can test it so the compiler can translate the Zinc/vJass to plain Jass
the evidence is easy, you can create trigger using scope and then do some error like write a outside of a function and you will see how it gets compiled
Hope this information helped you
 
Status
Not open for further replies.
Top