Editors Depot

[OFPRes] Open & Close Gate by THobson

Version 1
Added 01 Sep 2007
Downloads 602
Demo included Yes
Filesize 10.92KB
User rating Not yet rated

Defines a gate that the player can open and close, sliding or rotating

This script was inspired by macguba's Un-Impossible Mission. In that mission macguba has a gate that opens. That implementation worked well but was specific to the particular layout of the objects used in that mission. This script is more general and does not depend on the original direction of the objects involved. It also will rotate the object through a specified angle about one end as if it were attached by a hinge to the object next to it. The ability to close the gate is also provided.

Click to see 8 other resources by this author.

Search OFPEC Editors Depot


The OFPEC Command Reference contains details of all scripting commands available to the editor.

Beginner's Tutorial

All you need to know about how to start editing.

Multiplayer Tutorial

This tutorial explains the mysteries of multiplayer editing.

OFPEC Tutorials

OFPEC hosts several quality tutorials written specifically for the site by staff and members...


Register a tag, browse for addon keys...