[Solved] DoorComponent.setPullchainObject() does not work

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
MrChoke
Posts: 324
Joined: Sat Oct 25, 2014 7:20 pm

[Solved] DoorComponent.setPullchainObject() does not work

Post by MrChoke »

This function does not seem to work. It takes a string, I assume the name of an object with a Pullchain component. No matter what I put, even a garbage name, it does not override the default pullchain.
Last edited by MrChoke on Tue Mar 17, 2015 3:29 am, edited 1 time in total.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: BUG: DoorComponent.setPullchainObject() does not work

Post by minmay »

It works fine for me. Obviously you have to call DoorComponent:setPullChain() afterwards for it to have any effect.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
MrChoke
Posts: 324
Joined: Sat Oct 25, 2014 7:20 pm

Re: BUG: DoorComponent.setPullchainObject() does not work

Post by MrChoke »

minmay wrote:It works fine for me. Obviously you have to call DoorComponent:setPullChain() afterwards for it to have any effect.
Just coming back to the forum to delete this post. Yup, that was the problem.
Post Reply