I'm not sure if it's been entirely fixed or not. I may have been overtaxing the system by constantly checking for vehicles nearby the player, so I put that on a delay. If lua's garbage collector report is to be believed, the memory used does not seem to increase.
@Ivanya Thanks, I'll be checking into that issue for sure.
@Ivanya Oh, good catch. What program are you using to monitor that?
@ShakeZone Tested with the newest ScriptHook for the current game version, appears to work just fine.
@ShakeZone I would, but I currently have no access to my main computer and I wont for some time. Perhaps the lua plugin has not been updated properly yet, but I'm not sure.
@KlassenAS I'll look into it when I can, shouldn't be too much of an issue.
@Rohith It's entirely possible that could be causing it, but I'm really not sure.
@Rohith Strange, that doesn't work for me in Railroad Engineer. I shot at multiple trains with the railgun, various rocket launchers, the minigun, and tried some grenades and all had no effect. Are you running any other mods that might affect the vulnerability of vehicles?
@HeySlickThatsMe @gamersrevolt @Rohith I don't think that mod does the same thing, though it does have a derail feature, I don't remember it allowing you to actually destroy the trains otherwise. With that mod, a train can still plow through anything without damage, with this script installed that train will explode after a few hits.