So as the title says. I'm having trouble adding components using the .con file. I've had a little conversation with nightfury34 and he is also baffled on why nothing is showing.
Firstly, this is the code that works fine. Defines the masts thickness and adds a ladder with corresponding mountingpoints and the chosen ladder type (painted or bare metal).
Then I'm adding the part that baffles us. After the last elseif the option for IDsign schould be added to the model. How it's set up now it looks like this
if (params.NS55_mast and params.NS55_mast == 0) and (params.NS55_IDbord and params.NS55_IDbord == 0) then
result.models[#result.models+1] = {id="asset/NS55/Borden/NS55_IDbord_3.mdl", transf = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x_offset, y_offset, z_offset, 1}}
elseif (params.NS55_mast and params.NS55_mast == 0) and (params.NS55_IDbord and params.NS55_IDbord == 1) then
result.models[#result.models+1] = {id="asset/NS55/Borden/NS55_IDbord_4.mdl", transf = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x_offset, y_offset, z_offset, 1}}
elseif (params.NS55_mast and params.NS55_mast == 1) and (params.NS55_IDbord and params.NS55_IDbord == 0) then
result.models[#result.models+1] = {id="asset/NS55/Borden/NS55_IDbord_3_breed.mdl", transf = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x_offset, y_offset, z_offset, 1}}
elseif (params.NS55_mast and params.NS55_mast == 1) and (params.NS55_IDbord and params.NS55_IDbord == 1) then
result.models[#result.models+1] = {id="asset/NS55/Borden/NS55_IDbord_4_breed.mdl", transf = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x_offset, y_offset, z_offset, 1}}
end
end
The ID signs don't appear ingame, yet the game doesn't crash, doesn't show the empty file box and on top of that all, the console is totally empty.
What are we missing here that it reacts like this? I've already sized the sign up by 1000 with a visibleTo of 10000 to see if the sign is placed somewhere totally different, but that isn't the case either.