16 lines
368 B
Plaintext
16 lines
368 B
Plaintext
|
void main()
|
||
|
{
|
||
|
int nUser = GetUserDefinedEventNumber();
|
||
|
|
||
|
if(nUser == 1001) //unlock portculli
|
||
|
{
|
||
|
object oPortcullis1 = GetNearestObjectByTag("nk_am2_ogreport1", OBJECT_SELF, 1);
|
||
|
object oPortcullis2 = GetNearestObjectByTag("nk_am2_ogreport2", OBJECT_SELF, 1);
|
||
|
SetLocked(oPortcullis1, 0);
|
||
|
SetLocked(oPortcullis2, 0);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|