Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "ober_summon_gunner"
- {
- // General
- //------------------------------------------------------------------------------------------------------------
- -
- "ID" "5005"
- // unique ID number for this ability. Do not change
- this once established or it will invalidate collected stats.
- "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_POINT"
- "AbilityCastPoint" "0.4 0.4 0.4 0.4"
- "AbilityCastRange" "600"
- "BaseClass" "ability_datadriven"
- // Time
- //------------------------------------------------------------------------------------------------------------
- -
- "AbilityCooldown" "8.0"
- // Cost
- //------------------------------------------------------------------------------------------------------------
- -
- "AbilityManaCost" "145"
- // Special
- //------------------------------------------------------------------------------------------------------------
- -
- "OnSpellStart"
- {
- "SpawnUnit"
- {
- "UnitName" "npc_dota_lycan_wolf1"
- "Target" "POINT"
- "Duration" "45"
- "UnitCount" "1"
- }
- "RunScript"
- {
- "Target" "POINT"
- "Caster" "CASTER"
- "Point" "TARGET"
- "ScriptFile" "Ober.lua"
- "Function" "CheckGunner"
- }
- }
- }
- Ober.lua
- function CheckGunner( keys )
- local find = keys.caster:FindAbilityByName("ober_summon_gunner"):GetLevel()
- local Caster = keys.caster
- local point = keys.target_points[1]
- if find == 1 then
- CreateUnitByName("ober_gunner1", point, true, Caster, Caster, Caster:GetTeam())
- elseif find == 2 then
- CreateUnitByName("ober_gunner2", point, true, Caster, Caster, Caster:GetTeam())
- elseif find == 3 then
- CreateUnitByName("ober_gunner3", point, true, Caster, Caster, Caster:GetTeam())
- elseif find == 4 then
- CreateUnitByName("ober_gunner4", point, true, Caster, Caster, Caster:GetTeam())
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment