0 Members and 1 Guest are viewing this topic.
Average Score - 5 / 5
RegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_SPELL_EFFECT,function bla,bla)
RegisterPlayerUnitEvent(EVENT_PLAYER_HERO_SKILL,function bla,bla)
When I use this:Code: jassRegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_SPELL_EFFECT,function bla,bla)everything is working properlyBut when I use this:Code: jassRegisterPlayerUnitEvent(EVENT_PLAYER_HERO_SKILL,function bla,bla)spell/skill does not work.Does anyone know what the problem is?!?
Could you provide us with the spell code?
Okay, no problem.When I try to use this:Code: jassfunction SkillHeatActions takes nothing returns boolean // bla,bla return trueendfunction function StartTrigger_Skill_Heat takes nothing returns nothing local trigger=CreateTrigger() call TriggerRegisterAnyUnitEventBJ(t,EVENT_PLAYER_HERO_SKILL) call TriggerAddCondition(t,Condition(function SkillHeatActions)) call Preload(H_ModelPath()) set t=nullendfunctionEverything works perfectly,and when I try thisCode: jassfunction SkillHeatActions takes nothing returns boolean // bla,bla return trueendfunction function StartTrigger_Skill_Heat takes nothing returns nothing call RegisterPlayerUnitEvent(EVENT_PLAYER_HERO_SKILL,function SkillHeatActions) call Preload(H_ModelPath())endfunctionsimply will not work...
IS this function inside a scope? if so, try changing it into a library with the respective requirements
Hmmm.... have you debugged it??? I mean if this even start at all?? I hope you're not using TriggerSleepAction() or PolledWait() in the condition because it breaks the thread.
I never use TriggerSleepAction and PolledWait func
I figured what's the problem yeahhhhhhhhh!!!Problem solved.
Updated! NOW MICROSECONDS FASTER.
Started by PitzerMike
Started by Purgeandfire
Started by Bribe
Started by moyack
Started by Magtheridon96