Further file organization
Further file organization
This commit is contained in:
19
nwn/nwnprc/trunk/scripts/codi_s0_implcfo1.nss
Normal file
19
nwn/nwnprc/trunk/scripts/codi_s0_implcfo1.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Implicable Foe - On Enter
|
||||
*/
|
||||
void main()
|
||||
{
|
||||
object oCreator = GetAreaOfEffectCreator(OBJECT_SELF);
|
||||
object oEnter = GetEnteringObject();
|
||||
if(GetIsFriend(oEnter, oCreator))
|
||||
{
|
||||
if(oEnter != oCreator)
|
||||
{
|
||||
if(!GetImmortal(oEnter))
|
||||
{
|
||||
SetImmortal(oEnter, TRUE);
|
||||
SetLocalInt(oEnter, "IMPLICABLE_FOE_ON", TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user