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.
using System;
using ATVO.ThemesSDK;
using ATVO.ThemesSDK.Data.Results;
using ATVO.ThemeEditor.ThemeModels;
using ATVO.ThemeEditor.Scripting.DotNET;
namespace Scripts
{
public class pits : IScript
{
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
IEntitySessionResult pit = (IEntitySessionResult) value;
if (pit == null)
return "";
if (pit.Entity.Car.Movement.IsInPits == true)
return "bg_standing_pit";
else
return "bg_standing_pit_empty";
}
}
}