Skip to content
AppgineeringAppgineering
Shop
PinnedClosedRead-only1 posts · 2,161 views · Started 23 Jan 2018, 09:40

Posting and formatting scripts

Archived: discussion moved to DiscordDiscord
Nick ThissenAppgineeringOriginal poster
· edited
#1

To post a script, please use the "code" or "script" bbcode tags.

For the languages that ATVO supports, the script language is usually automatically detected. Sytnax highlighting (colors) are applied automatically based on the detected script language.

Example: C# script

public class Script : IScript
{
    public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
    {
		var entity = (IEntity) item;
		if (entity.CurrentDriver.Id = 12345)
		    return entity.CurrentDriver.Name;
		return "";
    }
}

This thread is archived.

New replies have moved to Discord.

Continue on Discord