Can we get an event for when a ship is "created"

Started by loudent, April 24, 2015, 12:34:35 AM

loudent

Not sure how the code works but I'm looking for an event when a ship is "Created". For Example, when it exits a station or is created in the first place.

I'd like a way to add cargo to freighters and miners so they're not flying around with nothing in the cargo.

ai_enabled

Currently there are no such event. We could add it in the future versions.
You can workaround it by spawning some cargo when you see that there are no cargo in the NPCs inventory.
Regards!

loudent

Quote from: ai_enabled on April 24, 2015, 01:48:32 AM
Currently there are no such event. We could add it in the future versions.
You can workaround it by spawning some cargo when you see that there are no cargo in the NPCs inventory.
Regards!

That is actually an interesting idea.