This page provides help to modders with different information people have found out about VTOL VR, such
as
where to find all the actors or how to get the players vehicle.
This page will get improved upon when there are more discoveries.
TargetManager.instance.allActors;
TargetManager.instance.alliedUnits;
TargetManager.instance.enemyUnits;
TargetManager.instance.detectedByAllies;
TargetManager.instance.detectedByEnemies;
//All return a list of the class actor.
FlightLogger.Log("My Message");
VTResources.GetBuiltInCampaign("campaignID").allScenarios;
VTResources.GetCustomCampaign("campaignID").allScenarios;
//Returns a list of the class 'VTScenarioInfo'
PilotSaveManager.pilots; //Dictionary of the class 'PilotSave' with the key being their names'
PilotSaveManager.current; //To set the selected Pilot
Insert - Enables/Disables
[ - Moves back an actor in the list
] - Moves forward an actor in the list
. - Cycles through time scales (0.1,0.25,0.5,1,2,4)
, - Sets the timescale to 0.1
/ - Sets the time scale to 1
Tab - Enables/Disables Gun shooting from mouse
Left Shift + Scroll - Changes FOV
h - Enables Head debug (Doesn't seem to work)
v - Does a toggle mod (Doesn't seem to work)
t - Does something called tgtMode (Doesn't seem to do anything)
private void Start()
{
HarmonyInstance instance = HarmonyInstance.Create("me.mymod");
instance.PatchAll(Assembly.GetExecutingAssembly());
}
[HarmonyPatch(typeof(ClassName))]
[HarmonyPatch("MethodName")]
public class Patch0
{
public static bool Prefix()
{
//Your Custom Code
return false;
}
}
var foo = FindObjectOfType<CustomClass>();
Traverse.Create(foo).Field("privateVariableName").SetValue("world");