a line must be a line, but it doesnt...

waaaks!

Zinctified
Reaction score
255
ok....

what i though about instants in caster system, is wether the spell to be casted is instant...or not instant...i know that thunderclap is an instant spell, but what does the boolean instant suppose to be?
 

waaaks!

Zinctified
Reaction score
255
JASS:
function CasterCastAbility takes player owner, integer abilid, string order, widget target, boolean instant returns unit
    return CasterCastAbilityLevel( owner, abilid, 1, order, target, instant )
endfunction


heres what i used
JASS:
function CasterCastAbilityLevelPointLoc takes player owner, integer abilid, integer level, string order, location loc, boolean instant returns unit
    return CasterCastAbilityLevelPoint( owner, abilid, level,order, GetLocationX(loc), GetLocationY(loc), instant )
endfunction
 

0zaru

Learning vJASS ;)
Reaction score
60
show me the one that you used and the one that uses inside that :p
:
Code:
CasterCastAbilityLevelPoint
 

waaaks!

Zinctified
Reaction score
255
Code:
function CasterCastAbilityLevelPointLoc takes player owner, integer abilid, integer level, string order, location loc, [B]boolean instant[/B] returns unit
    return CasterCastAbilityLevelPoint( owner, abilid, level,order, GetLocationX(loc), GetLocationY(loc), [B]instant[/B] )
endfunction

the bolded one is the one im confused
 

waaaks!

Zinctified
Reaction score
255
ohh sorry

JASS:
function CasterCastAbilityLevelPoint takes player owner, integer abilid, integer level, string order, real x, real y, boolean instant returns unit
 local real sx
 local real sy
 local real d
    if udg_sourcehack!=null then
        set sx=GetLocationX(udg_sourcehack)
        set sy=GetLocationY(udg_sourcehack)
    else
        set sx=x
        set sy=y
    endif
    if instant then
        set d=0
    else
        set d=udg_delayhack+0.01
    endif
 return CasterCastAbilityPointEx(owner,sx,sy,0,abilid,level,order,x,y,d)
endfunction


and heres the function caster cast ability point ex

JASS:
function CasterCastAbilityPointEx takes player owner, real x1, real y1, real z1, integer abilid, integer level, string order, real x2, real y2, real delay returns unit
 local unit caster=GetACaster()
    call SetUnitOwner( caster, owner, false)
    call UnitAddAbility( caster, abilid)
    call SetUnitAbilityLevel(caster,abilid,level)
    call CS_MoveUnit( caster, x1, y1)
    call SetUnitFlyHeight(caster,z1,0)
    if S2I(order) != 0 then
        if not IssuePointOrderById( caster, S2I(order), x2,y2 ) then
            call IssueImmediateOrderById( caster, S2I(order) )
        endif
    else
        if not IssuePointOrder( caster, order, x2,y2 ) then
            call IssueImmediateOrder( caster, order )
        endif
    endif
    if (delay<=0) then
        call UnitRemoveAbility( caster, abilid)
        call RecicleCaster( caster)
    else
        call RecicleCasterAfterCastEx(caster, delay, abilid, true)
    endif
 set udg_currentcaster=caster
 set caster=null
 return udg_currentcaster
endfunction
 

0zaru

Learning vJASS ;)
Reaction score
60
Instant is the delay that use the function to remove the ability... from what i can see

If Instant is true it waits nothing if its > than 0 it call another func
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
I wonder what value is udg_delayhack...
If it is 0, then it make sense.

If boolean is true then the spell will be removed in an instant, if it is false then it will be removed after 0.01, which gives time for the caster to cast the spell.

Correct me if i am wrong :p
 

waaaks!

Zinctified
Reaction score
255
ive fixed the spell already, i tried changing the instant to false, and it works fine...

now i learned about instant, when ur spell will cast automatically without any animations, then that would be instant, but if not like thunder clap, then thats not instant

correct me if im wrong
 
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