(svn r23624) -Add: ScriptVehicle/ScriptStation/ScriptSign::GetOwner, to get the owner of those objects (GameScript only)
This commit is contained in:
@@ -131,6 +131,15 @@ public:
|
||||
*/
|
||||
static char *GetName(VehicleID vehicle_id);
|
||||
|
||||
/**
|
||||
* Get the owner of a vehicle.
|
||||
* @param vehicle_id The vehicle to get the owner of.
|
||||
* @pre IsValidVehicle(vehicle_id).
|
||||
* @return The owner the vehicle has.
|
||||
* @api -ai
|
||||
*/
|
||||
static ScriptCompany::CompanyID GetOwner(VehicleID vehicle_id);
|
||||
|
||||
/**
|
||||
* Get the current location of a vehicle.
|
||||
* @param vehicle_id The vehicle to get the location of.
|
||||
|
Reference in New Issue
Block a user