Scripting Doors

Description

Create scriptable doors that make your map more interactive.

Title

How to Forge Interactive Maps in Halo Infinite

Created By

Reference URL

Double Doors

Required Objects

Required Nodes

Steps

Add required objects

Add the required objects to map in order to setup a scripted double doorway.

  • 2 - Double Doorway; Stacked back to back

  • 4 - Floor Standard; side by side in the middle of the doorway

  • 1 - Script Brain

  • 1 - Scriptable Switch (Invisible)

Object Reference - Switch

Select the Scriptable Switch, then go into Node Graph and place an Add Object Reference to the Scriptable Switch.

Object Reference - Floors (Doors)

Add Object Reference nodes to each Floor Standard objects, similar to the step above.

Add Script Nodes

Add Move Object to Transform node and then an On Object Interacted node

Configure Script Nodes

Connect the nodes; See reference

If you prefer to have a faster or slower door movement speed, adjust the amount of seconds on the Move Object To Transform node Duration In Seconds.

Result

Automatic Doors

Required Objects

Required Nodes

Steps

Optional

Prior to adding objects, create a new folder in order to keep similar objects in the same working folder.

Add required objects

Add the required objects to map in order to setup a scripted automatic doorway.

  • 2 - Single Doorway A; Stacked back to back

  • 2 - Floor Standard; stacked on top of each other, one beneath the surface floor

  • 1 - Script Brain

  • 2 - Pointer; One pointer used as a boundary another a reference point

Object Reference - Floors (Doors)

Add Object Reference nodes to each Floor Standard objects, then go into Node Graph and place an Add Object Reference for the doors.

Object Reference - Pointers

Select the Detector Pointer, then go into Node Graph and place an Add Object Reference to the Pointer.

Set Pointer Boundary

Select and place the pointer in the desired placement. Set the boundary that fits the size of where you would like to monitor player movements.

Set Reference Pointer

In order to close the door properly, the door must have a Destination Point to reference. Copy the coordinates of the Closed door to the same point as the reference pointer, this will ensure the door closes to its original coordinates.

Configure Script Nodes

Connect the nodes; See reference

In order for the script to properly run, you must have the references set correctly. Review the reference video on automatic doors for more information.

Result

References

See the reference video by Red Nomster!

Page Authored By

Date

20 November 2022

Last updated