initial commit
This commit is contained in:
18
aghanim_singleplayer/scripts/vscripts/items/item_pocket_campfire.lua
Executable file
18
aghanim_singleplayer/scripts/vscripts/items/item_pocket_campfire.lua
Executable file
@@ -0,0 +1,18 @@
|
||||
|
||||
item_pocket_campfire = class({})
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
function item_pocket_campfire:OnSpellStart()
|
||||
if IsServer() then
|
||||
local vPos = self:GetCursorPosition()
|
||||
local hPocketCampfire = CreateUnitByName( "npc_dota_pocket_campfire", vPos, true, nil, nil, DOTA_TEAM_GOODGUYS )
|
||||
if hPocketCampfire ~= nil then
|
||||
EmitSoundOn( "PocketCampfire.Create", hCampfire )
|
||||
end
|
||||
self:SpendCharge()
|
||||
end
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user