Excellent!
Like you say, I am sure there will be a Mount:IsCombatMount() function or soemthing similar, but if this works we have a workaround!
EDIT:
Tried this, seems "Nicer";
Code:
import "Turbine.Gameplay"
player = Turbine.Gameplay.LocalPlayer.GetInstance()
function player:IsCombatMount()
local Mount = self:GetMount()
if Mount~=nil then
return (Mount.GetTurnRate~=nil)
end
end
function player:IsMounted()
local Mount = self:GetMount()
return Mount~=nil
end
player.MountChanged=function(sender,args)
if player:IsMounted() then
local Mount = player:GetMount()
Turbine.Shell.WriteLine(Mount:GetName())
if player:IsCombatMount() then
Turbine.Shell.WriteLine("Combat Mount")
else
Turbine.Shell.WriteLine("Non Combat Mount")
end
else
Turbine.Shell.WriteLine("No Mount")
end
end