Where in data i can find events?
-
- Long Handed Inserter
- Posts: 92
- Joined: Sun Jun 18, 2017 2:21 pm
- Contact:
Where in data i can find events?
Where in the base game events are located? I am looking in particular anything related to entering a vehicle or "changing drive state". I looked through a data.raw but I can't find anything
Re: Where in data i can find events?
http://lua-api.factorio.com/latest/index.htmlrobertpaulson wrote:Where in the base game events are located? I am looking in particular anything related to entering a vehicle or "changing drive state". I looked through a data.raw but I can't find anything
-
- Long Handed Inserter
- Posts: 92
- Joined: Sun Jun 18, 2017 2:21 pm
- Contact:
Re: Where in data i can find events?
Well I'm not sure how this answers my question. Let me specify:Klonan wrote:http://lua-api.factorio.com/latest/index.htmlrobertpaulson wrote:Where in the base game events are located? I am looking in particular anything related to entering a vehicle or "changing drive state". I looked through a data.raw but I can't find anything
I would like to know where in the game this event is used to look what exactly it triggers. Looking it up wont really help me. But thank you
Re: Where in data i can find events?
Ya from that link you have to go to LuaBootstrap -> on_event ->list of events
http://lua-api.factorio.com/latest/events.html
http://lua-api.factorio.com/latest/events.html
-
- Long Handed Inserter
- Posts: 92
- Joined: Sun Jun 18, 2017 2:21 pm
- Contact:
Re: Where in data i can find events?
Hmmm, ok well I'm looking there at:d3x0r wrote:Ya from that link you have to go to LuaBootstrap -> on_event ->list of events
http://lua-api.factorio.com/latest/events.html
Code: Select all
on_player_driving_changed_state
Called when the player's driving state has changed, this means a player has either entered or left a vehicle.
Contains
player_index :: uint
i.e- when the player enters/leaves a car, a car mask has a player specific tint applied to it, there is also bunch of other things happening when player enters/exits vehicles and I would like to see what those things are.
Re: Where in data i can find events?
Those things aren't coded in lua. They can only be seen in the source code of the game, which only the devs have access to.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
-
- Long Handed Inserter
- Posts: 92
- Joined: Sun Jun 18, 2017 2:21 pm
- Contact:
Re: Where in data i can find events?
Bilka wrote:Those things aren't coded in lua. They can only be seen in the source code of the game, which only the devs have access to.
ah crap. Well i need to find some weird workaround then lol.... but now I get why i can't find certain things lol.... thank you for your help guys