Car Question

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Car Question

#1

Post by KINGTUT10101 »

Q1: How can I flag a car to in-game roads like the country and dirt roads?

Q2: Would it be possible to add a feature that lets us decide the speed of a car by ignoring the speed of the road it's on? For example, I want my NASCAR car to go (x) speed regardless of the road it's on.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Car Question

#2

Post by CommanderABab »

A1

Code: Select all

"flag normal":true
.

A2 real life NASCARs go slower on slower tracks than fast tracks. B)

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Car Question

#3

Post by KINGTUT10101 »

I want my vehicle to go on specific in-game roads, not all of them.

The NASCAR thing was just an example lol

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Car Question

#4

Post by CommanderABab »

Then you use plugin road(s) with

Code: Select all

"flag user2":true //for example
.
Set

Code: Select all

"flag normal": false" 
on the road(s) if you want to exclude in game cars.
Be sure to check the tutorial section for how to use "x flags" at crossings.

Then when defining your vehicle, use the same

Code: Select all

"flag user2":true, //for example
"flag normal":false

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Car Question

#5

Post by KINGTUT10101 »

I don't want it to go on plug-in roads. Just dirt and country.

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Car Question

#6

Post by Josh »

Maybe you could use these graphics for a plugin with your own flags.
country_road.png
country_road.png (3.48 KiB) Viewed 1608 times
dirt_road.png
dirt_road.png (5.66 KiB) Viewed 1608 times

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Car Question

#7

Post by CommanderABab »

They are "flag normal":true by default. As are the highway, alley, and expressway.
I gave you a solution.

What you want, and need to do then, is ask Lobby to redo the whole existing road code to use an additional flag for each in-game road.

The better solution would be for you to override the dirt and countrý roads via plugin, steal the frames, add the additional flag, and have your NASCAR vehicles only use those roads with that flag set to true.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Car Question

#8

Post by KINGTUT10101 »

Sorry I just thought we had a miscommunication there. Lol

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Car Question

#9

Post by CommanderABab »

:)

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”