LuaEntity::selected_gun_index does not work for spider-vehicle entities. Accessing it crashes with the error message given: "Entity is not a character nor a car."
Presumably this is an oversight since you can tab between multiple weapons on Spidertron just like any other vehicle.
[1.0.0] LuaEntity "spider-vehicle" does not support selected_gun_index
Re: [1.0.0] LuaEntity "spider-vehicle" does not support selected_gun_index
I see this was moved to Implement Mod Interface Requests. Thanks for taking care of it!
My mods: Multiple Unit Train Control, Smart Artillery Wagons
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk