Overvehicles
The Overvehicles class is a enum-ish class that provides the Overvehicle object associated with a OverVehicleName
Getting an Overvehicle
You can get a Overvehicle either by a string name, a static name, or it's OverVehicleName or by the Lyokowarrior that is riding it (either as driver or as passenger)
By static name
You can get a specific OV like this:
//check the HP of Overwing
int hp = Overvehicles.OVERWING
By string name
If you have to work with a string, for example when you are using user input, you can get it like this:
string name = "Overbike";
Overvehicle vehicle = Overvehicles.GetByName(name);
It will throw an ArgumentException
if the OV does not exist.
By Rider
You can also use a Lyokowarrior to find an Overvehicle:
//get the vehicle that Odd is riding
Overvehicle vehicle = Overvehicles.GetByWarrior(LyokoWarriors.ODD)
This will return null
if the warrior isn't riding a vehicle. You can check this with LyokoWarrior.IsRidingVehicle()
By LyokoWarriorName
You can also use OverVehicleName to find an Overvehicle:
Overvehicle vehicle = Overvehicles.GetByName(OverVehicleName.OVERWING)
Last updated
Was this helpful?