Re: Relative Rotation of Attachments in Lua
Here's a script that deals with making sure the parent is picked properly. Basically it puts a check on finding the parent in the update function so it won't keep doing it. The rest of it is a modified version of CC48's shield that I helped fix up for AndyChanglee's halo mod:
Attachment:
AESG.lua [4.6 KiB]
Downloaded 482 times
As for getting the attachable, this one here should help you. You'll need to get the parent actor first (i.e. what you have already) then get the attachable you want using this setup. There may be a way to do it more directly but I don't know it. The rest of it is some fun actor flight stuff for a project of my own, though it only works in 0 gravity:
Quote:
Man I don't know why you're called Bad Boy when you're so good!
Aww thanks
I'm always happy to help people with lua stuff, I just don't have enough time anymore. And yeah, it's an awful name, and I'd change it (and probably should) but the thought of going through all the various places I've registered with it and trying to change it is enough to keep me from actually doing it. For what it's worth, I picked it as a kid (about a decade ago, oh god!) when I thought it was super cool.
Edit: Hahaha I just noticed that you're using the braingfighter thing I made for you, that made the long night ahead of me a bit better. I'd look forward to seeing what you end up making