mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Notify scripts when door has closed/opened
This commit is contained in:
parent
981d72ac5a
commit
5baf5bccf2
1 changed files with 8 additions and 0 deletions
|
@ -578,6 +578,10 @@ void Door::OpenEnd(Event *ev)
|
|||
} else {
|
||||
StopSound(CHAN_VOICE);
|
||||
}
|
||||
|
||||
// Added in 2.30
|
||||
// Notify scripts that the door has finished opening
|
||||
Unregister(STRING_DONE);
|
||||
|
||||
previous_state = state;
|
||||
SetState(STATE_OPEN);
|
||||
|
@ -609,6 +613,10 @@ void Door::CloseEnd(Event *ev)
|
|||
|
||||
previous_state = state;
|
||||
SetState(STATE_CLOSED);
|
||||
|
||||
// Added in 2.30
|
||||
// Notify scripts that the door has finished closing
|
||||
Unregister(STRING_DONE);
|
||||
}
|
||||
|
||||
void Door::Close(Event *ev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue