

Its the lua scripting I am interested in. To see if and how you get it to work!!!
function OnControlValueChange ( name, index, value )
if Call( "*:ControlExists", name, index ) then
if name == "Startup" then
if ( Call( "GetIsEngineWithKey" ) == 1 ) then
Call( "SendConsistMessage", START_ID, value, 0 )
Call( "SendConsistMessage", START_ID, value, 1 )
end
end
if name == "Headlights" then
if value == 1 then
Call( "TestHeadlight:ActivateNode", "lhlglow", 1 )
else
Call( "TestHeadlight:ActivateNode", "lhlglow", 0 )
end
end
Call( "*:SetControlValue", name, index, value );
end
end
KCJones wrote:If you download the shape linked above it should do that. Remeber though it is designed for my F7 so uses the F7 textures. As the shape is public you can upload it with your repaints. AND you can edit the shape file to change the textures for the other Fs and E. Remember to put a light01 texture file in the fittings\textures folder BEFORE you change it to red.
Probably the quickest way to do that would be to make a copy of the light02 file in the engine/textures folder and rename it as light01, perhaps renaming the original light01 as xxlight01 first so as not to lose it!!!!!![]()
Dick
Kali wrote: I like fiddling under the bonnet like that.
arizonachris wrote:Y'all from over yonder sure talk funny.![]()
Users browsing this forum: No registered users and 1 guest