T
tejdi
Guest
Hello! I have got a question and it's connected with tables in LUA.
Let's say that I would like to send a specific effect to 5 coordination on the map.
I've created table that looks like this:
And I would like to send the effects to every sqm from table by one code line (if it is possible)
Something like this would be amazing, but I do not know how to call all the parametrs from the table.
I tried to find tables tutorial on the forum but didn't find anything for tfs 1.2.
Let's say that I would like to send a specific effect to 5 coordination on the map.
I've created table that looks like this:
LUA:
local energy = {
a = {x=788, y=976, z=11},
b = {x=796, y=979, z=11},
c = {x=786, y=986, z=11},
d = {x=791, y=981, z=11},
e = {x=790, y=978, z=11}
}
And I would like to send the effects to every sqm from table by one code line (if it is possible)
LUA:
doSendMagicEffect(config.energy[ALL PARAMETERS], CONST_ME_ENERGYHIT)
Something like this would be amazing, but I do not know how to call all the parametrs from the table.
I tried to find tables tutorial on the forum but didn't find anything for tfs 1.2.