PDA

View Full Version : How to notify sim out of idle from a BHAV?


Jasana_BugBreeder
6th Sep 2006, 9:18 PM
Consider you have sim in interaction with an object, interaction BHAV contains WaitForNotify calls, so user can cancel interaction manually.
I want to imitate that 'manual cancel' from a bhav, the question is - how to do it?
I tried to set stack object to sim id and call primitive 0x0031 'Notify the Stack Object out of Idle' - it didn't work.
I tried to set flag Stack Object's 0x0008 (flags) Set Flag flag# Literal Value 0x0007 (notified by idle for input)(saw it checked in the WaitForNotify bhav) - didn't helped either.
Any other ideas on what can be called? I can make a workaround via additional attribute state, but maybe there are better ways?

dizzy2
7th Sep 2006, 5:39 PM
Person interactions use a queue, so the way you cancel an interaction is by pushing some dummy interaction (an interaction that does nothing) onto the queue.