Oh god, im trying to incorporate your script into mine and its difficult. I'll get back to you in 30 or so if I can't figure it out
OK I did my best in incorporating and I think it might be you at fault :\
I got an error:
main (111, 36): ERR :'_crankSignature' is not declared
main (113, 77): ERR :'_doorName' is not declared
these lines of code are (lines 105-117)
//If we have only one crank left, then that crank needs to be attached to the door.
int crankCount = GetLocalVarInt("CrankCount");
if(GetLocalVarInt("CranksDone") == crankCount-1)
{ //Find the crank that isn't attached yet so we can attach it.
for(int i=1; i<=crankCount; i++)
{
if(GetLocalVarInt("state_"+_crankSignature+i) != 1)
{ //Found it? Attach it! Don't need to loop further now.
InteractConnectPropWithMoveObject("MoveDoor",_crankSignature+i,_doorName,true,false,1);
i=crankCount;
}
}
}