So I wanted to link some trapdoors to a script but i keep getting an error saying that it was a nil value. I think I'm missing the ending of the name like how a pedestal is whatever the name is .surface.
What do you add for a trapdoor.
And a teleporter. That one would help too.
trapdoors
Re: trapdoors
to open a trapdoor
to close a trapdoor
to toggle the trapdoor (if his actual state is closed, it will open itself)
Code: Select all
my_trap_door_1.controller:open()Code: Select all
my_trap_door_1.controller:close()Code: Select all
my_trap_door_1.controller:toggle()- Zo Kath Ra
- Posts: 944
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: trapdoors
Have you watched Skuggasveinn's editor tutorials?
viewtopic.php?f=22&t=7055
viewtopic.php?f=22&t=7055
-
Mortis_of_Midian
- Posts: 14
- Joined: Wed Dec 10, 2014 6:07 pm
Re: trapdoors
If you want a trapdoor to detect if somthing is placed on it try putting a Floor Trigger in the same square as your TrapDoor and linking your script to that