brainAI\scripts\enterArea\generic.src bug?
Posted: Sun Oct 01, 2006 3:22 am
097\Distro\pkg\mobiles\brainAI\scripts\enterArea\generic.src
Line 33
There's something strange, I see no use in the code block
when there's already a
Maybe you wanted to wakeup only when the LookAround nerve isn't running and you forgot to remove the first wakeup?
Line 33
Code: Select all
function EnteredArea(npc, byref event, byref settings, byref scripts)
var source := event.source;
if ( NPC_ShouldWatch(npc, source, settings, scripts) )
if ( NPC_AddToWatchList(npc, source) )
AI_WakeUp(npc);
if ( scripts["LookAround"] )
if ( !GetNerveProcess(npc, "LookAround") )
AI_WakeUp(npc);
endif
endif
return 1;
endif
endif
return 0;
endfunctionCode: Select all
if ( scripts["LookAround"] )
if ( !GetNerveProcess(npc, "LookAround") )
AI_WakeUp(npc);
endif
endifCode: Select all
AI_WakeUp(npc);