Shadowfied wrote:Can anyone explain how to use the Door:setOpenedBy(key) script?
Do you just put this in a script entity? How do you specify which door is gonna be opened by this item?
Yeah, add a script entity and refer to the door with its ID. For example, if you would want to open a with the ID of dungeon_door_wooden_locked_1 with an iron key, you could add the following line to a script entity:
Shadowfied wrote:Can anyone explain how to use the Door:setOpenedBy(key) script?
Do you just put this in a script entity? How do you specify which door is gonna be opened by this item?
Yeah, add a script entity and refer to the door with its ID. For example, if you would want to open a with the ID of dungeon_door_wooden_locked_1 with an iron key, you could add the following line to a script entity:
Shadowfied wrote:Can anyone explain how to use the Door:setOpenedBy(key) script?
Do you just put this in a script entity? How do you specify which door is gonna be opened by this item?
Yeah, add a script entity and refer to the door with its ID. For example, if you would want to open a with the ID of dungeon_door_wooden_locked_1 with an iron key, you could add the following line to a script entity:
antti wrote:Yeah, add a script entity and refer to the door with its ID. For example, if you would want to open a with the ID of dungeon_door_wooden_locked_1 with an iron key, you could add the following line to a script entity:
antti wrote:Yeah, add a script entity and refer to the door with its ID. For example, if you would want to open a with the ID of dungeon_door_wooden_locked_1 with an iron key, you could add the following line to a script entity: