I've modified a bit ai_soldier.lua file just for video purpose, in your case you should rename it, so don't overwrite the original one.
-- AI : Soldier Behavior
ai_soldier_combatshoot = require "scriptbank\\ai\\module_combatshoot"
function ai_soldier_init(e)
ai_soldier_combatshoot.init(e,ai_combattype_regular)
end
function ai_soldier_main(e)
isNPC[e] = 1
ai_soldier_combatshoot.main(e,ai_combattype_regular,ai_movetype_usespeed)
end
Attach above script to the enemies you want being able to open the door.
Attach the script attached below to the door.
I've use chain door, masked soldier, and it works, video tomorrow, not time to upload now.
In the video you'll can notice I'm far away from the door, just want to be sure, it is not opening becaiuse the player distance, but because the soldier proximity.
hth
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4