/trunk
local name2 = strconcat(name, "-") |
LivestockSettings.Mounts[name] = { index = i, } -- set the index of the mount |
--[[ mountFlags explanation |
Ground 0x01 |
Fly 0x02 |
Float 0x04 |
Underwater 0x08 |
Jump 0x10 |
Flying mounts = 7 |
Water mounts = 12 |
Ground mounts = 29 |
Flying carpets = 23 (they can't swim) |
Multi-purpose = 31 |
]] |
if mountFlags == 7 then -- flying mount |
LivestockSettings.Mounts[name].type = "flying" |
elseif mountFlags == 31 or mountFlags == 23 then -- variable |