Created
May 7, 2014 21:53
-
-
Save Numbers11/6392a738fc234bfd5d11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function printTable(list, i) | |
local listString = '' | |
--~ begin of the list so write the { | |
if not i then | |
listString = listString .. '{' | |
end | |
i = i or 1 | |
local element = list[i] | |
--~ it may be the end of the list | |
if not element then | |
return listString .. '}' | |
end | |
--~ if the element is a list too call it recursively | |
if(type(element) == 'table') then | |
listString = listString .. printTable(element) | |
else | |
listString = listString .. element | |
end | |
return listString .. ', ' .. printTable(list, i + 1) | |
end | |
function magicOrbOnSpawn(keys) | |
Say(nil,'HERE WE ARExsx', false); | |
print(#keys) | |
print(printTable(keys)) | |
if self ~= nil then print("self is defined") else print("self is not defined") end | |
-- local target = keys.target | |
-- if target == nil then | |
-- print('no target') | |
-- return | |
-- end | |
-- local caster = keys.caster | |
-- if caster == nil then | |
-- print('no caster') | |
-- return | |
-- end | |
-- caster:ModifyGold(600,false,0) | |
-- ExecuteOrderFromTable({ | |
-- UnitIndex = keys., | |
-- OrderType = DOTA_UNIT_ORDER_ATTACK_MOVE, | |
-- order to move to next way point | |
-- Position = Vec3(0,0,0), | |
-- Queue = false | |
--}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment