#Oshiro Doors

1 messages · Page 1 of 1 (latest)

sterile sun
#

Does anyone know how to unlock Oshiro doors during a cutscene?

slow valley
#

looks like you'd have to use a Lua/C# cutscene for it, the cutscene does it like this:

foreach (ClutterDoor door in doors){
  if (!door.IsLocked(level.Session)){
    yield return door.UnlockRoutine();
  }
}

where IsLocked checks both whether the oshiro_clutter_door_open flag is set, and oshiro_clutter_cleared_{color} where {color} is the number representation of the appropriate clutter "color" (from 0-3):

public enum Colors
{
    Red,
    Green,
    Yellow,
    Lightning
}
real quest
#

that's clutter doors, not oshiro doors

#

oshiro door is a different entity that's only used for the reception room at the start

slow valley
#

ah in that case it's even simpler

foreach (MrOshiroDoor item in Scene.Entities.FindAll<MrOshiroDoor>())
    item.Open();
#

(or item.InstantOpen) for the OnEnd function

sterile sun
#

I was hoping NOT to use Lua

#

but thanks