gCabWindowFL = 0.0
gPrevCabWindowFL = 0.0
WINDOW_ANIM_SENSITIVITY = 4
function UpdateCabWindowFL()
gCabWindowFL = GetControl("CabFrontWindowL")
if gCabWindowFL ~= gPrevCabWindowFL then
local increment = (gCabWindowFL - gPrevCabWindowFL)*WINDOW_ANIM_SENSITIVITY
Call ("AddTime", "CabFrontWindowL", increment)
gPrevCabWindowFL = gCabWindowFL
end
end -- function UpdateCabWindowFL
mrennie wrote:Here's an excerpt from one of my locos (UP119)......
mrennie wrote:Here's an excerpt from one of my locos......
mikeadams2k wrote:mrennie wrote:Here's an excerpt from one of my locos......
mikeadams2k wrote:mikeadams2k wrote:mrennie wrote:Here's an excerpt from one of my locos......
Success! After trying a slightly different approach, I was able to get the exterior windows and hatch operating in conjunction with their interior counterparts. Thanks so much for the script and the tip on experimenting with the WINDOW_ANIM_SENSITIVITY value.
Return to Rolling-Stock Design
Users browsing this forum: No registered users and 1 guest