Front and Back light tutorial for Car

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
mbmichael1
Townsman
Reactions:
Posts: 56
Joined: 10 Jan 2026, 08:42
Plugins: Showcase Store

Front and Back light tutorial for Car

#1

Post by mbmichael1 »

Car Light TutorialX.png
Car Light TutorialX.png (11.7 KiB) Viewed 131 times
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.

User avatar
Kribas
Inhabitant of a Conurbation
Reactions:
Posts: 493
Joined: 16 Oct 2025, 04:39
Location: I think it's Greece? Maybe Libya? Could be Peru
Plugins: Showcase Store
Version: Beta
Contact:

Platform

Re: Front and Back light tutorial for Car

#2

Post by Kribas »

Someone used MS Paint

User avatar
Musa_Russia_2012
Settler
Reactions:
Posts: 1
Joined: 06 Apr 2026, 19:12

Re: Front and Back light tutorial for Car

#3

Post by Musa_Russia_2012 »

:plugin Looking for Seoul map

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”