Distance to enter the vehicle(LUA string)

Place to get help with not working mods / modding interface.
Post Reply
DolphinFox
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri May 05, 2017 5:40 pm
Contact:

Distance to enter the vehicle(LUA string)

Post by DolphinFox »

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?

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Distance to enter the vehicle(LUA string)

Post by eradicator »

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.

DolphinFox
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri May 05, 2017 5:40 pm
Contact:

Re: Distance to enter the vehicle(LUA string)

Post by DolphinFox »

I need the parameter itself, which is responsible for the distance to enter the car, how it looks and where to find it

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Distance to enter the vehicle(LUA string)

Post by DaveMcW »

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.

DolphinFox
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri May 05, 2017 5:40 pm
Contact:

Re: Distance to enter the vehicle(LUA string)

Post by DolphinFox »

Ok, i understand

Post Reply

Return to “Modding help”