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.
"boardable" property
"boardable" property
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.
I also update mods, some of them even work.
Recently I did a mod tutorial.
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: "boardable" property
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
For example: https://github.com/GopherAtl/nixie-tube ... #L362-L368