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
[1.0.0] LuaEntity "spider-vehicle" does not support selected_gun_index
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
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, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.