New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPCs don't use doors properly #2
Comments
gothic-1-community-patch/scriptbase/_work/Data/Scripts/Content/AI/B_Human/B_MoveMob.d Lines 1 to 33 in 746a440
changed to func void B_MoveMob ()
{
var string door; door = Npc_GetDetectedMob(self);
if (Hlp_StrCmp (door, "DOOR"))
{
if (Wld_GetMobState (self,door) == 0)
{
Npc_ClearAIQueue (self);
AI_UseMob (self, door, 1);
AI_UseMob (self, door, -1); //NSC muss sich am Mobsi abmelden, da sonst die Tür wieder zu geht!
};
}
else
{
return;
};
AI_ContinueRoutine (self);
}; |
@catalinstoian The differences to the original function are quite big (even when ignoring all the Can you elaborate how this fix works and why the above mentioned parts are no longer necessary? |
Describe the bug
NPCs close doors immediately after opening them and are thus not able to walk through them.
Expected behavior
NPCs now open closed doors properly and walk through them.
The text was updated successfully, but these errors were encountered: