Front and Back light tutorial for Car

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
mbmichael1
Townsman
Reactions:
Posts: 56
Joined: 10 Jan 2026, 06:42
Plugins: Showcase Store

Front and Back light tutorial for Car

Post by mbmichael1 »

Car Light TutorialX.png
If you want your cars front and back light is always ON, like in vanilla models. You can use light animation code like this. its obtained from Theotown assets.

Code: Select all    Reset

"animation" : [ { "id": "carlight_red", "pos": [0, 0, 1, 10, 11, 11, 0, 0], "frames": [1,2] }, { "id": "carlight_red", "pos": [0, 0, 4, 11, 14, 10, 0, 0], "frames": [1,2] }, { "id": "carlight_yellow", "pos": [12, 11, 0, 0, 0, 0, 0, 8], "frames": [0,3] }, { "id": "carlight_yellow", "pos": [15, 10, 0, 0, 0, 0, 2, 9], "frames": [0,3] }]
JSON checker
Check
And if you confused what pos mean, its for locating red & yellow light position precisely. Red light is for back of the cars, Yellow light is for front of the cars. I will add simple explanation like this :
Car Light Tutorial.png
The value from the "pos" is like coordinates and its depend on the car size and shape, so it will require many trial and error for finding right placement.

Hope it will help you someday.
You do not have the required permissions to view the files attached to this post.
User avatar
Kribas
Inhabitant of a Country
Reactions:
Posts: 795
Joined: 16 Oct 2025, 02:39
Location: Nuuk, Greenland
Plugins: Showcase Store
Version: Beta

Platform

Re: Front and Back light tutorial for Car

Post by Kribas »

Someone used MS Paint
M
Musa_Russia_2012
Settler
Reactions:
Posts: 1
Joined: 06 Apr 2026, 17:12

Re: Front and Back light tutorial for Car

Post by Musa_Russia_2012 »

:plugin Looking for Seoul map
Previous topicNext topic