Message from Lee:
Quote: "
I created the blastdoor.lua script specifically to work with logic that only opens the door once a password is known (i.e. told to you by an in-game character). If you look at the 'engineer.lua' script, you will notice I set the 'engineer_door_password=1' which will then allow the blast door to automatically open when you get near it. You can always replace the script in the door entity with door.lua
"
So his way is more challenging, but you will need to get the original script back From
function blastdoor_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 100 and g_PlayerHealth > 0 then
GetEntityPlayerVisibility(e)
if g_Entity[e]['plrvisible'] == 1 then
if g_Entity[e]['activated'] == 0 and engineer_door_password == 0 then
if GetTimer(e)>5000 then
PlaySound(e,0)
StartTimer(e)
engineer_door_password = 1
end
To
function blastdoor_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 100 and g_PlayerHealth > 0 then
GetEntityPlayerVisibility(e)
if g_Entity[e]['plrvisible'] == 1 then
if g_Entity[e]['activated'] == 0 and engineer_door_password == 0 then
if GetTimer(e)>5000 then
PlaySound(e,0)
StartTimer(e)
-- engineer_door_password = 1
end
Sorry for the confusion.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit