Adding setvar to a bus (1 Viewer)

sancouve

Armchair Developer
Nov 10, 2016
81
1
485
Hong Kong
I've been trying to add a setvar which would allow me to toggle fleet number on and off.
The model.cfg entry looks like this:
Code:
[mesh]
ADL_2010\ADL_Fleet_No.o3d

[visible]
vis_nofn
0

[matl]
D_wagennummer.bmp
0

[useTextTexture]
0

[matl_alpha]
2

[matl_texadress_clamp]
And the cti entry has the follwing:
Code:
[setvar]
vis_nofn
1
However, when I start the game, the bus still shows the fleet number. Did I miss something?
 
Solution
Did I miss something?
Yes:
The variable (in this case vis_nofn) needs to be defined as a script variable. To do this, it needs to be in one of the _varlist.txt files in the Script folder, ideally the bus should already have a "visual_varlist.txt" file that you can append the variable to on a new line.

Road-hog123

An Orange Bus
FF Council
UKDT
Add-on London Team
Dec 10, 2015
2,287
109
3,158
Kent, UK
roadhog123.co.uk
Pronouns
He/Him
Did I miss something?
Yes:
The variable (in this case vis_nofn) needs to be defined as a script variable. To do this, it needs to be in one of the _varlist.txt files in the Script folder, ideally the bus should already have a "visual_varlist.txt" file that you can append the variable to on a new line.
 
Solution

Advertisement

This thread is more than 6 years old.

Your message may be considered spam for the following reasons:

Users who are viewing this thread