On this page, you will find the OCB (Object Code Bits) for use in TombEngine. If there is a download available then a button will appear next to the entry. Be sure to check back because as the project is developed: more will be added.
Use the room flag “No Lens Flare” and he will suffocate. The behaviour for this is that he will first try to escape, then suffocate if he cannot. Use the “Set Box Sector” flags on all doors to prevent escape.
code bits
ON (click the object and press the o
key ) to activate a heavy trigger placed underneath the switch.Pushable objects can now be pushed over the edge with new custom animations to make the transition smoother (credit: GeckoKid)
xx
is width, and yy
is sprite size.NB: Whilst this is now more flexible to code via Lua: these OCB’s are also useful for quick effects. Information taken from this post:
OCB | Direction | Time On (seconds) | Time Off (seconds) |
-2 | Horizontal | Continuous | Continuous |
-14 | Horizontal | 5 | 1 |
-21 | Horizontal | 5 | 2 |
-6 | Horizontal | 5 | 3 |
-37 | Horizontal | 5 | 4 |
-32 | Horizontal | 5 | 5 |
-4 | Horizontal | 6 | 1 |
-3 | Horizontal | 6 | 2 |
-28 | Horizontal | 6 | 3 |
-53 | Horizontal | 6 | 5 |
-52 | Horizontal | 6 | 6 |
-59 | Horizontal | 6 | 7 |
-68 | Horizontal | 6 | 8 |
-64 | Horizontal | 6 | 9 |
-84 | Horizontal | 6 | 11 |
-97 | Horizontal | 6 | 13 |
-107 | Horizontal | 6 | 14 |
-108 | Horizontal | 6 | 15 |
-12 | Horizontal | 7 | 1 |
-20 | Horizontal | 7 | 2 |
-38 | Horizontal | 7 | 4 |
-44 | Horizontal | 7 | 5 |
-48 | Horizontal | 7 | 6 |
-60 | Horizontal | 7 | 8 |
-72 | Horizontal | 7 | 9 |
-80 | Horizontal | 7 | 10 |
-85 | Horizontal | 7 | 11 |
-102 | Horizontal | 7 | 12 |
-100 | Horizontal | 7 | 13 |
-115 | Horizontal | 7 | 14 |
-112 | Horizontal | 7 | 15 |
-128 | Horizontal | 7 | 16 |
-70 | Horizontal | 8 | 8 |
-1 | Vertical | 5 | 2 |
-41 | Vertical | 5 | 5 |
-9 | Vertical | 6 | 1 |
-25 | Vertical | 6 | 3 |
-33 | Vertical | 6 | 4 |
-57 | Vertical | 6 | 7 |
-73 | Vertical | 6 | 9 |
-113 | Vertical | 6 | 14 |
-129 | Vertical | 6 | 17 |
-49 | Vertical | 7 | 7 |
-81 | Vertical | 7 | 10 |
-121 | Vertical | 7 | 14 |
-65 | Vertical | 8 | 8 |
ItemFlags[0]
using Moveable:SetItemFlags()
Spiky_Wall:Moveable::SetItemFlags[0]
code.Minecart_Switch
object. To use this: place a HEAVY
trigger underneath the switch and it will trigger this when it is hit with the wrench if Lara is riding in the minecart.