Skip to reading
Visual Scripting in Depth

25. Change the door’s visible and usable state

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations

Figure 17. These actions explicitly disable the door and hide it after the puzzle is solved.

1. On the success path, set door_open true.

2. Use Enable / Disable Object with workshop_door and Enabled false when the old blocking object should stop participating.

3. Use Hide / Unhide Object with Visible false when the old door should disappear.

4. For a finished game, replace the disappearance with an opening animation or transform, while updating the collider and interaction state deliberately.

5. Test walking through the opening and clicking the area after the change.

In the current 3D runtime, disabling the entity disables its runtime node, and hiding it also updates its active collision state. The explicit pair makes the intended solved state easy to read. Test the actual object type and room mode you use.

A flag alone does not move a mesh. A mesh animation alone does not necessarily make an authored navigation blocker match the new opening. Keep the logical flag, visible state and collision/navigation behavior in agreement.

If the door is already hidden or disabled, an ordinary player click will not reach it again. A repeat-call test can still verify that its reward guard is sound.

Page 29 of 93Permalink
Go to page