temporary patch for the door system

This commit is contained in:
2016-12-05 01:20:02 +11:00
parent 398ccd5b3f
commit 19ccd823ef
2 changed files with 12 additions and 4 deletions
+8
View File
@@ -66,6 +66,10 @@ function doorUtility.CreateDoorPair(handle, roomOne, Xone, Yone, roomTwo, Xtwo,
--disable the other trigger
local triggerTwo = triggerManagerAPI.FindTrigger(roomAPI.GetTriggerMgr(roomTwo), handle)
triggerAPI.PushExclusionEntity(triggerTwo, entity)
--bookkeeping: remove from the original trigger's exclusion list
local triggerOne = triggerManagerAPI.FindTrigger(roomAPI.GetTriggerMgr(roomOne), handle)
triggerAPI.RemoveExclusionEntity(triggerOne, entity)
end
local function scriptTwo(entity)
@@ -79,6 +83,10 @@ function doorUtility.CreateDoorPair(handle, roomOne, Xone, Yone, roomTwo, Xtwo,
--disable the other trigger
local triggerOne = triggerManagerAPI.FindTrigger(roomAPI.GetTriggerMgr(roomOne), handle)
triggerAPI.PushExclusionEntity(triggerOne, entity)
--bookkeeping: remove from the original trigger's exclusion list
local triggerTwo = triggerManagerAPI.FindTrigger(roomAPI.GetTriggerMgr(roomTwo), handle)
triggerAPI.RemoveExclusionEntity(triggerTwo, entity)
end
--create the triggers proper