Undocking events?
- AssumedPseudonym
- Fleet Officer
- Posts: 1212
- Joined: Thu Aug 29, 2013 5:18 am
- Location: On the other side of the screen.
Pretty much exactly what it says on the tin. There’s <OnObjDocked> to fire events when something docks anywhere, but is there a way to make an event fire when something undocks? If not, I may need to post a feature request for an <OnObjUndocked> or the like.

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)
My mods on Xelerus: Click here!
Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
-
- Fleet Officer
- Posts: 1533
- Joined: Tue Mar 22, 2011 8:43 pm
- Location: Alaska
- Contact:
I think that right now the methods in use are :
DockScreen Exits holding a command in then ( you exit dock and the event starts like Point Juno )
or Behaviors of ships for when they leave Dock ( like in STK ).
stations that look for Ships and send orders to them ( Lets say you kill a ship on it's way to a station : the station also has a Guard coming up behind you on it's way to Dock....the Station is AngryAt YOU : that Not Yet Docked Guard tries to BBQ your ship . Yup, Been there too
)
Stations Can and Do Look for ships : like Korolov can summon any Freighter in the system stupid enough to get close or Dock with the proper Attribs for Korolov Service ( Attribs : Commonwealth, freighter ) - I learned this making my first Shipping Company, Masak.
DockScreen Exits holding a command in then ( you exit dock and the event starts like Point Juno )
or Behaviors of ships for when they leave Dock ( like in STK ).
stations that look for Ships and send orders to them ( Lets say you kill a ship on it's way to a station : the station also has a Guard coming up behind you on it's way to Dock....the Station is AngryAt YOU : that Not Yet Docked Guard tries to BBQ your ship . Yup, Been there too

Stations Can and Do Look for ships : like Korolov can summon any Freighter in the system stupid enough to get close or Dock with the proper Attribs for Korolov Service ( Attribs : Commonwealth, freighter ) - I learned this making my first Shipping Company, Masak.
Flying Irresponsibly In Eridani......
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
- AssumedPseudonym
- Fleet Officer
- Posts: 1212
- Joined: Thu Aug 29, 2013 5:18 am
- Location: On the other side of the screen.
As near as I can make out, those are built into the station’s code. What I’m needing is more along the lines of a way to check when you undock from any station.

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)
My mods on Xelerus: Click here!
Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
-
- Fleet Officer
- Posts: 1533
- Joined: Tue Mar 22, 2011 8:43 pm
- Location: Alaska
- Contact:
Ok - Possible Possum - virtual station that calls for your local ships by Attributes ( or just calls for them by generic class )AssumedPseudonym wrote: As near as I can make out, those are built into the station’s code. What I’m needing is more along the lines of a way to check when you undock from any station.
** Do NOT order your ships to get Goofy without Defining Goofy

Code: Select all
<StationType UNID="&stGoofy;"
name= "Goofy Stuff"
virtual= "True"
>
<Events>
<OnGlobalSystemCreated>
(block Nil
(sysCreateStation &stGoofy2; nil)
)
</OnGlobalSystemCreated>
</Events>
</StationType>
<StationType UNID="&stGoofy2;"
name= "Gooffier Stuff"
virtual= "True"
>
<Events>
<OnPlayerEnteredSystem>
(block (targets)
(setq targets (sysFindObject gSource "sN: +genericClass;"))
(enum targets target
(block Nil
(shpCancelOrders target)
(objFireEvent target "OrderGetGoofy")
)
)
)
(plymessage gPlayer "Gooffiest things Going On!!")
</OnPlayerEnteredSystem>
<OrderGetGoofy>
Lots of Goofy Code for Goofy Stuff
</OrderGetGoofy>
</Events>
</StationType>
Flying Irresponsibly In Eridani......
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..