Hey guys,
I got a problem with the outfit system.
I use this script from AFRLme to bring up a animation in the right direction and it works so far.
But if I change the costume, it plays only the animation from the first outfit.
I named all this animations in the different outfits with the same name.
local char = game:getLink(VGameCurrentCharacter)
function checkDir()
-- East
if char:getInt(VCharacterDirection) >= -22 and char:getInt(VCharacterDirection) <= 23 then
startAnimation("Animations[useinv_e]")
-- North East
elseif char:getInt(VCharacterDirection) >= 24 and char:getInt(VCharacterDirection) <= 68 then
startAnimation("Animations[useinv_ne]")
-- North
elseif char:getInt(VCharacterDirection) >= 69 and char:getInt(VCharacterDirection) <= 113 then
startAnimation("Animations[useinv_n]")
-- North West
elseif char:getInt(VCharacterDirection) >= 114 and char:getInt(VCharacterDirection) <= 158 then
startAnimation("Animations[useinv_nw]")
-- West
elseif char:getInt(VCharacterDirection) >= 159 and char:getInt(VCharacterDirection) <= 203 then
startAnimation("Animations[useinv_w]")
-- South West
elseif char:getInt(VCharacterDirection) >= 204 and char:getInt(VCharacterDirection) <= 248 then
startAnimation("Animations[useinv_sw]")
-- South
elseif char:getInt(VCharacterDirection) >= 249 and char:getInt(VCharacterDirection) <= 293 then
startAnimation("Animations[useinv_s]")
-- South East
elseif char:getInt(VCharacterDirection) >= 294 and char:getInt(VCharacterDirection) <= 338 then
startAnimation("Animations[useinv_se]")
end
end
Any tips how I can handle this?
I am working with V4.1 Build1177