m
→Example: There's no second argument for GetNumCompanions()
m (Fixed typo in example code.) |
m (→Example: There's no second argument for GetNumCompanions()) |
||
| Line 31: | Line 31: | ||
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> | <!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> | ||
<!-- begin code --> | <!-- begin code --> | ||
for i=1,GetNumCompanions("CRITTER" | for i=1,GetNumCompanions("CRITTER") do | ||
local creatureID, creatureName, creatureSpellID, icon, issummoned = GetCompanionInfo("CRITTER", i); | |||
print(creatureID, creatureSpellID, creatureName, icon, issummoned) | |||
end | |||
<!-- end code --> | <!-- end code --> | ||