Object animation's "saved" state

OK ... I have managed to get my first "real" door working using the IPO animations (I even managed to incorporate sounds that are actually synchronised to the animation!) ... but ... (oh, why do I hate that word so much!) ... I have noticed something about the animation that is "puzzling"... and wonder if I need to add something to my alcscript to "fix" it.
It seems that the position of the door (open or closed) is automatically stored in the .sav file for my Age.
If I exit my Age with the door open, when I return it is still open.
However, if I then press the door button (to close the door), the animation starts from the CLOSED position. (It works correctly if I exit the Age with the door closed - obviously!).
Once the door has "snapped" into the closed position and then it opens, it then continues to works correctly. It´s just the FIRST time I click the button upon entering my Age (with an OPEN door) that forces the door to the closed position in order to complete the "opening" animation for the "first time".
It seems that the .sav file is remembering the position of the door but not the "state" of it ... and it seems my Alcscript "forces" the door animation to always start from the Closed position when I first enter the Age with an OPEN door.
Here is how I made the door ...
1) the door is triggered by a buttton called "DoorButton"
2) The door is called "Door1"
3) the click region is called "Doorswing"
4) The avatar animation empty is called "DoorButtonOneshot"
5) The sound emitter is called "emit_doorswing"
6) The door ogg. sound is "psnlCloset_close" (Cyan's)
7) Avatar animation is called "DoorButtonTouch"
and the relevant alcscript ...


any ideas anyone ?
(I´m guessing it has someting to do with "nextstate" ... but I really have NO idea ...
)
It seems that the position of the door (open or closed) is automatically stored in the .sav file for my Age.
If I exit my Age with the door open, when I return it is still open.
However, if I then press the door button (to close the door), the animation starts from the CLOSED position. (It works correctly if I exit the Age with the door closed - obviously!).
Once the door has "snapped" into the closed position and then it opens, it then continues to works correctly. It´s just the FIRST time I click the button upon entering my Age (with an OPEN door) that forces the door to the closed position in order to complete the "opening" animation for the "first time".
It seems that the .sav file is remembering the position of the door but not the "state" of it ... and it seems my Alcscript "forces" the door animation to always start from the Closed position when I first enter the Age with an OPEN door.
Here is how I made the door ...
1) the door is triggered by a buttton called "DoorButton"
2) The door is called "Door1"
3) the click region is called "Doorswing"
4) The avatar animation empty is called "DoorButtonOneshot"
5) The sound emitter is called "emit_doorswing"
6) The door ogg. sound is "psnlCloset_close" (Cyan's)
7) Avatar animation is called "DoorButtonTouch"
and the relevant alcscript ...


any ideas anyone ?
(I´m guessing it has someting to do with "nextstate" ... but I really have NO idea ...
