21 lines
421 B
Plaintext
21 lines
421 B
Plaintext
#include "nw_o2_coninclude"
|
|
|
|
void main()
|
|
{
|
|
object oLastOpener = GetLastOpener();
|
|
|
|
if (GetStealthMode(oLastOpener) == STEALTH_MODE_ACTIVATED)
|
|
{
|
|
if (!GetIsSkillSuccessful(oLastOpener,SKILL_HIDE,20))
|
|
ShoutDisturbed();
|
|
}
|
|
|
|
else
|
|
{
|
|
//SendMessageToPC(GetFirstPC(),"Supposed to change faction.");
|
|
ShoutDisturbed();
|
|
}
|
|
|
|
DelayCommand(13.0f,ActionCloseDoor(OBJECT_SELF));
|
|
}
|