TombEngine icon indicating copy to clipboard operation
TombEngine copied to clipboard

[ bug Report ] - ExtraAnim -> Next animation only possible in extra anim object not "Lara" Object

Open illyaine opened this issue 5 months ago • 0 comments

TombEngine version

v1.4

Tomb Editor version

v1.7.1

Describe the bug

When you “create” animations with LUA. In my example, I wanted Lara to perform an animation when you press the “Backwards” button while sprinting. This also works, but in the WADTool you can only use the “Next Anim” of the actual object. I wanted to use the animations in the “Extra Anim” object so that the Lara object remains untouched.

For sprinting it would have been animation 223, which of course does not work because it does not exist in the Extra Anim object. So there is no way to go back to the animations from the Lara object. You also have the same problem with your “DAGGER_PICKUP” animation, which repeats itself every time it is played.

To Reproduce

LevelFuncs.OnLoop = function() sprintSlide() end ...

function sprintSlide() local ActualAnim = Lara:GetAnim() if ActualAnim == 223 and KeyIsHit(1) then Lara:SetAnim(586) end end

Animation “586” is the Anim ID 17 in the Extra Anim object. Next Animation 223. TE also returns the error that this is linked to Next Anim 0. This means that animation 0 “DAGGER_PICKUP” comes after “Extra Anim ID 17”

Expected Behaviour

That you can link to the animations from the “Lara object” again without having to copy the original animation into the “Extra Anim” object. Which of course doesn't work either, because you are always trapped.

Screenshots

Anims

illyaine avatar Aug 30 '24 19:08 illyaine