Help between some jass coding

risen_jihad

New Member
Reaction score
10
What all is the differnece between:
VENT_PLAYER_UNIT_SPELL_FINISH
EVENT_PLAYER_UNIT_SPELL_ENDCAST
EVENT_PLAYER_UNIT_SPELL_EFFECT
EVENT_PLAYER_UNIT_SPELL_CHANNEL
EVENT_PLAYER_UNIT_SPELL_CAST

In the map, whenever a unit casts a certain spell it places units. However it is bugged so that you can begin casting the spell to place units, but if you quickly hit h/s it places the units but the spell is still on cooldown. As it is, it is ENDCAST. What is the difference between all 5?
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
vexorian said:
EVENT_PLAYER_UNIT_SPELL_CHANNEL : useless, ignore it
EVENT_PLAYER_UNIT_SPELL_CAST : To detect the moment before a unit spends mana/cooldown and is about to cast a spell
EVENT_PLAYER_UNIT_SPELL_EFFECT : The exact moment a unit casts the spell and consumes mana/cooldown
EVENT_PLAYER_UNIT_SPELL_FINISH : The unit has succesfully ended casting the spell
EVENT_PLAYER_UNIT_SPELL_ENDCAST: The unit stopped casting the spell (either succesfully or not)
Use EFFECT unless there is a good reason to use something else.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top