The "OnCommandIsBought" event is executed as soon as the player bought a command;
This also provides the following information:
Input:
- Buy Method - INTEGER - gives the following numbers according to the origin of the purchase (which menu the purchase was made from):
- 0=Market Menu
- 1=Stock Menu
- 2=Scanner
- List Of Bay - ARRAY of INTEGER - gives the list of dock numbers where the order will be received
- List Items Bought - ARRAY of structure - gives the list of items to be purchased in the order, including the quantity per item, as well as their identifier and variant.
And here is the information that is returned to modify the game's logic:
Output:
- TruckDelay(0=GameDefaultDelay) - INTEGER- Here you enter the time before the order arrives; (if the value is 0, then the time will be ignored and the delay will be the in-game delay or other mods delay).