Page 1 of 1
trapdoors
Posted: Mon Jul 18, 2016 4:48 pm
by Daniknamchang
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.
Re: trapdoors
Posted: Mon Jul 18, 2016 7:01 pm
by bongobeat
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:toggle()
Re: trapdoors
Posted: Mon Jul 18, 2016 7:01 pm
by Zo Kath Ra
Have you watched Skuggasveinn's editor tutorials?
viewtopic.php?f=22&t=7055
Re: trapdoors
Posted: Thu Jul 21, 2016 3:58 pm
by Mortis_of_Midian
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