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 Kyle H
on
Sören Kolodziej wrote:
use

using System;
using ATVO.ThemesSDK;
using ATVO.ThemeEditor.ThemeModels;
using ATVO.ThemeEditor.Scripting.DotNET;
using ATVO.ThemesSDK.Data.Entity;

namespace Scripts
{
public class REVCOUNTER : IScript
{
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
value = ((IDriver)value).Car.Movement.Rpm;
value = (int)value / 400 * 400;
return value.ToString();
}
}
}

as script and bind your image to /rpm{0000}.png images should look like rpm5000.png rpm5400.png and so on


Thank you very much!