Re: Team of gibs and the thing they gibbed from
Grif wrote:
Yeah, data's attachable code is very barely exposed to our manipulations, which is a real shame. No custom wounds just yet.
Well, as far as "finding the team of the actor currently holding the weapon" goes in order to set the weapon's team, here's my method: In the update function, just have it constantly searching for the closest actor and setting the weapon's team to that actor's team. With any luck, the last team it'll switch to before becoming a Lua-defunct attachment is the team of the actor who picked it up.
There's a chance it could pick up the wrong actor though. But chances are slim.