Distance to enter the vehicle(LUA string)
-
- Burner Inserter
- Posts: 5
- Joined: Fri May 05, 2017 5:40 pm
- Contact:
Distance to enter the vehicle(LUA string)
I need to find a line of code that is responsible for the distance to the vehicle entrance. Somebody can tell which configuration files contain this line and how it is better to integrate it into the mod?
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Distance to enter the vehicle(LUA string)
Making an educated guess: The prototype definition doesn't seem to have anything related to that, so it is very likely to be a hardcoded distance to the outer edges of the vehicles collision box. If you need custom logic you can try linking a custom hotkey to the enter-vehicle key and the scan for vehicles in the vicinity yourself at a distance of your liking.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
-
- Burner Inserter
- Posts: 5
- Joined: Fri May 05, 2017 5:40 pm
- Contact:
Re: Distance to enter the vehicle(LUA string)
I need the parameter itself, which is responsible for the distance to enter the car, how it looks and where to find it
Re: Distance to enter the vehicle(LUA string)
It is embedded in the source code, only hacking the EXE can change it. Hence the suggestion to make a different hotkey with custom logic.
Or you could ask nicely in Modding interface requests.
Or you could ask nicely in Modding interface requests.
-
- Burner Inserter
- Posts: 5
- Joined: Fri May 05, 2017 5:40 pm
- Contact:
Re: Distance to enter the vehicle(LUA string)
Ok, i understand