12-12-2011, 10:17 PM
I suppose you're talking about this part of your script:
Note that to lock the door these functions should be:
What kind of door are you trying to open. Is it a swing type door? Like the ones you can interact to move open?
___________
About the sound and light. That probably happens because function PerformLeverTaskCompleted is not being called. Please activate debug mode and find out if that's the reason.
PHP Code:
void PerformLeverTaskCompleted()
{
SetSwingDoorLocked("door1", false, false);
SetSwingDoorClosed("door1", false, false);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0.5f, false);
StartEffectFlash(1, 0.4, 1);
}
Note that to lock the door these functions should be:
PHP Code:
SetSwingDoorLocked("door1", true, false);
SetSwingDoorClosed("door1", true, false);
What kind of door are you trying to open. Is it a swing type door? Like the ones you can interact to move open?
___________
About the sound and light. That probably happens because function PerformLeverTaskCompleted is not being called. Please activate debug mode and find out if that's the reason.