"boardable" property

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

"boardable" property

Post by Adil »

Entities currently have [rw] `operable` property. It prevents opening the interface of the entity.
However, it might be useful sometimes to prevent the ability of player entering a certain vehicle.
`operable` doesn't cover that, and this might actually be handy in some scenario of sorts.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Supercheese
Filter Inserter
Filter Inserter
Posts: 841
Joined: Mon Sep 14, 2015 7:40 am
Contact:

Re: "boardable" property

Post by Supercheese »

While this would slightly simplify matters, you can nonetheless achieve the same result by monitoring the on_player_driving_changed_state event and ejecting any player who enters a certain vehicle.

For example: https://github.com/GopherAtl/nixie-tube ... #L362-L368
Post Reply

Return to “Modding interface requests”