Lua Unit Minions

LuaUnit : Minions
Returns all minions controlled by this unit as LuaUnit objects.

NOTE: This function returns a C# List<?> that has not been marshalled. It is recommended that you marshal the results into a Lua table using the provided toTable function, as shown in the example below.

NOTE: It is possible for a minion returned by this function to no longer be valid. If needed, you should verify that by checking IsValid.

Example
-- Get the minions of our player. local minions = toTable(myPlayer.Minions);

-- Loop through each minion and print it to the log. for k, v in pairs(minions) do Info("Minion found: " .. v.DisplayName); end