Ok I've got a good enough idea now on how I'll make my dvt appear to be a dvt, but this doesn't include realistic dvt physics since it was said before it can't be done at this time.
Can I get some feedback on the idea, the mk4 set is ready to be tested with a 67. Right now I'm just testing bits out, this first test is to see if I can prevent the user from giving the vehicle power, I've tried this by setting the pantograph value to 0, and making sure that if the user activates the pantograph (sets the value to 1 I'd presume for the specified control value) Here's what I've used, there's no errors on export so the syntax is correct, yet I can still turn the pantograph on and off

My main suspicion is the update type, should it be un-noticeably frequent, say 1/2 a second? so the player doesn't have time to raise the pantograph since the script resets the value to 0 once it changes to 1? Here's the script:
Code: Select all
function Setup ()
end
function Update (interval)
end
function Initialise ()
end
function OnControlValueChange ( name, index, value )
if Call( "*:ControlExists", name, index ) then
Call( "*:SetControlValue", name, index, value );
end
end
function GetControlValue(name, index)
if Call ("*:GetControlValue", "PantographControl", 1) == 1 then
Call ("*:SetControlValue", "PantographControl", 0);
end
end
I'm far from experienced in lua so please excuse any potential, obvious or stupid errors, oh and yes, the control name for the pantograph in my engine blueprint is PantographControl, I'd assume it's in the right place...
Any input greatly appreciated, I'd like to see dvt realism increase with some hard work, and I'm sure we'll all learn a lot.