[Reques] entity.prototype return specific prorotype
[Reques] entity.prototype return specific prorotype
Hi I would like to request feature, that entity.prototype will not return LuaEntityPrototpe in all cases, but if i have for example type storage-tank, that it will return LuaEntityPipeConnectablePrototype so we will be able access and get info from specific variables, in this example from fluid_box. Creating meta-items isnt best workaround when player can see them when selecting conditions/filter for smart devices.
Re: [Reques] entity.prototype return specific prorotype
i want add this too
prototype.minable.hardness
prototype.minable.mining_time
It's the same issue, I wouldn't make another post for the same request![Smile :)](./images/smilies/icon_e_smile.gif)
prototype.minable.hardness
prototype.minable.mining_time
It's the same issue, I wouldn't make another post for the same request
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: [Reques] entity.prototype return specific prorotype
The entityprototype object has been significantly added to for the 0.12 version:
Added several new options to LuaEntityPrototype: mineableproperties, itemstoplacethis, collisionbox, selectionbox, order, group, subgroup, healingpertick, emissionspertick, corpses, selectableingame, weight, resistances, fastreplaceablegroup, loot, repairspeedmodifier
If you want to get ahold of me I'm almost always on Discord.
-
- Burner Inserter
- Posts: 7
- Joined: Wed Jun 10, 2015 12:27 am
- Contact:
Re: [Reques] entity.prototype return specific prorotype
Yes, this would be a perfect option. I'd love it if keys didn't have to be added in the C++ code for it to be accessible in lua. Hide only the more important variables that would break the game if changed.