Play more than 1 animation with OnEnterRegion?
Posted: Wed Jan 11, 2017 11:04 pm
Thanks to Marth8880, I can now play an animation with the OnEnterRegion function! I wish to know if it`s possible to play more than 1 anim with it, I have an anim group with 2 anims in it, and when I set it up for the OnEnterRegion trigger, it didn`t work. So I removed one of the animations and now it works. I can play both anims, but I`d need to use 2 OnEnterRegion functions in my LUA. But I`d like to know if there is a way I can use 1.
The 2 anims here are called "gunshipcrash" and "rockroll". They both have their own separate anim groups. The region is called "crashplace".
This works, but to try and get them BOTH to play using this one bit of code, I tried adding the name of the other anim group after the ("gunshipcrash") part. The only way I could do it without errors was like this -
PlayAnimation("gunshipcrash", "rockroll")
But that didn`t work. It only plays "gunshipcrash". I added in another OnEnterRegion function just for the "rockroll" anim, and they both worked. Is it possible to play them both with only 1 OnEnterRegion code or do I need to use 2?
Thanks
The 2 anims here are called "gunshipcrash" and "rockroll". They both have their own separate anim groups. The region is called "crashplace".
Hidden/Spoiler:
This works, but to try and get them BOTH to play using this one bit of code, I tried adding the name of the other anim group after the ("gunshipcrash") part. The only way I could do it without errors was like this -
PlayAnimation("gunshipcrash", "rockroll")
But that didn`t work. It only plays "gunshipcrash". I added in another OnEnterRegion function just for the "rockroll" anim, and they both worked. Is it possible to play them both with only 1 OnEnterRegion code or do I need to use 2?
Thanks