local actors = GetActors()
local num = 0
local actors_list = ""
for i,v in ipairs(actors) do
if (v ~= OwnerID) and (v ~= MyID) then
num = num + 1
id = GetV(V_MERTYPE, v)
if actors_list == "" then
actors_list = ""
else
actors_list = actors_list .. " \n"
end
local x, y = GetV(V_POSITION, v)
actors_list = actors_list .. id .. "," .. x .. "," .. y
end
end
You're ID is id = GetV(V_MERTYPE, v)
Change V_MERTYPE to V_TARGET
also the "v" in ipairs(actors) is the actor value already