It is currently Mon Jan 05, 2009 8:31 pm

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: brainAI\scripts\enterArea\generic.src bug?
PostPosted: Sun Oct 01, 2006 3:22 am 
Offline

Joined: Sun Mar 05, 2006 7:25 am
Posts: 118
Location: Italy
097\Distro\pkg\mobiles\brainAI\scripts\enterArea\generic.src

Line 33

Code:
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;
endfunction


There's something strange, I see no use in the code block
Code:
         if ( scripts["LookAround"] )
            if ( !GetNerveProcess(npc, "LookAround") )
               AI_WakeUp(npc);
            endif
         endif


when there's already a
Code:
         AI_WakeUp(npc);

Maybe you wanted to wakeup only when the LookAround nerve isn't running and you forgot to remove the first wakeup?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 01, 2006 10:06 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 432
Location: San Diego, California
Fixed.
Was related to a bug that existed with sleeping, until Abner found it.

_________________
-Austin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl