Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Nick Thissen
on
You can probably do a simple check for the current camera group name. This obviously assumes there are no additional onboard cameras (I think there are more built in, and of course someone can always create their own). There is no way to tell if a camera is "onboard" or not so you'll have to rely on the name.

public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
var name = sim.CameraManager.CurrentGroup.Name;
if (name == "Cockpit" || name == "Rollbar")
{
// Show onboard
}
else
{
// Hide onboard
}
return null;
}