[1.0.0] LuaEntity "spider-vehicle" does not support selected_gun_index

robot256
Smart Inserter
Smart Inserter
Posts: 1253
Joined: Sun Mar 17, 2019 1:52 am
Contact:

[1.0.0] LuaEntity "spider-vehicle" does not support selected_gun_index

Post by robot256 »

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.
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.
robot256
Smart Inserter
Smart Inserter
Posts: 1253
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [1.0.0] LuaEntity "spider-vehicle" does not support selected_gun_index

Post by robot256 »

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.
Post Reply

Return to “Implemented mod requests”