VehicleConstructed
From Original War Support Wiki
SAIL Events -> VehicleConstructed
Added In: 1.02
Description
This event appears when a vehicle is completed.
Exported Values
VehicleConstructed(vehicle, factory)
vehicle - vehicle constructed in factory
factory - factory
Example
You can use this in On Event like this:
export List; on VehicleConstructed(vehicle, factory) do Begin if factory = f1 then List = List ^ vehicle; if List = 5 then AddComAgressiveMove(List, 99, 13); end;
This code checks, if the factory that constructed the vehicle was f1. Also it adds the vehicle to a list. It checks if there are 5 vehicles in the list. If that's true, they receive an order to aggressive move to (99, 13) for every unit in the list "List".