#how to check DOTA_ABILITY_BEHAVIOR_ALT_CASTABLE state?

1 messages · Page 1 of 1 (latest)

pure locust
#

title

hallow bridge
#

in order filter add flag when player toggle ability

#

api dont have methods to check it

pure locust
#

thanks!

amber scarab
#

if event.order_type == 40 then
local ability = EntIndexToHScript(event.entindex_ability)
ability.alt_cast = not ability.alt_cast
return true
end

#

Intercept it in the order filter

sleek sigil
#

event.order_type == 40

Who needs readable code amirite 😛

#

Why not event.order_type == DOTA_UNIT_ORDER_CAST_TOGGLE_ALT instead

#

Also, you might not want to return true immediately inside the if, if you want more things to happen. You should return true at the end of the function