18 lines
526 B
Plaintext
18 lines
526 B
Plaintext
// No Vermin or Undead allowed
|
|
void main()
|
|
{
|
|
object oE=GetEnteringObject();
|
|
object oN1=GetNearestObjectByTag("Elrendil");
|
|
object oN2=GetNearestObjectByTag("Mebrith");
|
|
object oN3=GetNearestObjectByTag("Laric");
|
|
object oN4=GetNearestObjectByTag("Brina");
|
|
int nType=GetRacialType(oE);
|
|
if (nType==RACIAL_TYPE_VERMIN||nType==RACIAL_TYPE_UNDEAD)
|
|
{
|
|
SetIsTemporaryEnemy(oE,oN1);
|
|
SetIsTemporaryEnemy(oE,oN2);
|
|
SetIsTemporaryEnemy(oE,oN3);
|
|
SetIsTemporaryEnemy(oE,oN4);
|
|
}
|
|
}
|