If I enable powerless for turrets and enable the switch option, I can not pick up the turret.
It says it has attachments. Any help?
Regards
If I enable powerless for turrets and enable the switch option, I can not pick up the turret.
It says it has attachments. Any help?
Regards
Do you have any other plugins which could cause this? This plugin doesn't generate that message, and I'm pretty sure that isn't vanilla behavior.
Merged post
I looked more into this and found that it's due to a check now done by vanilla Rust, which applies to all electrical entities. Basically, the entity cannot be picked up if it has child entities. Unfortunately, this is affecting some of my other plugins as well, including Car Turrets and Drone Turrets. Similar plugins by other creators will also be affected.To solve this, I can create a more elaborate solution which simply spawns the switch next to the turret without technically parenting it, but this approach will not work for the other plugins I mentioned as those turrets need to move along with their parent vehicle, so rather than trying to invent two different solutions, I will explore ways I can create a reusable solution. I should have an update out in the next few days.
Hey,
I changed in the code this to true and I am able to pick up the switch first and after the turret for example :)
Idea: maybe destroy the attachment before picking up? Like checking if it has any attachments and if it's a switch brake the switch first?
Regards