Trying to sidestep the issue

This commit is contained in:
2016-12-05 15:16:52 +11:00
parent d3be16ab38
commit 3a2d28022b
+3 -3
View File
@@ -60,7 +60,7 @@ function doorUtility.CreateDoorPair(handle, roomOne, Xone, Yone, roomTwo, Xtwo,
--move the character --move the character
characterAPI.SetRoom(entity, roomTwo) characterAPI.SetRoom(entity, roomTwo)
characterAPI.SetOrigin(entity, Xtwo, Ytwo-16) characterAPI.SetOrigin(entity, Xtwo, Ytwo+16)
networkAPI.PumpCharacterUpdate(entity) networkAPI.PumpCharacterUpdate(entity)
--disable the other trigger --disable the other trigger
@@ -77,7 +77,7 @@ function doorUtility.CreateDoorPair(handle, roomOne, Xone, Yone, roomTwo, Xtwo,
--move the character --move the character
characterAPI.SetRoom(entity, roomOne) characterAPI.SetRoom(entity, roomOne)
characterAPI.SetOrigin(entity, Xone, Yone-16) --NOTE: the 16 pixel margin for presentation characterAPI.SetOrigin(entity, Xone, Yone+16) --NOTE: +16 should prevent double collision issues
networkAPI.PumpCharacterUpdate(entity) networkAPI.PumpCharacterUpdate(entity)
--disable the other trigger --disable the other trigger
@@ -94,4 +94,4 @@ function doorUtility.CreateDoorPair(handle, roomOne, Xone, Yone, roomTwo, Xtwo,
doorUtility.CreateTrigger(handle, roomTwo, Xtwo, Ytwo, scriptTwo) doorUtility.CreateTrigger(handle, roomTwo, Xtwo, Ytwo, scriptTwo)
end end
return doorUtility return doorUtility