Initial commit. Updated release archive.
This commit is contained in:
19
_module/nss/ayla_village_ohb.nss
Normal file
19
_module/nss/ayla_village_ohb.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
//If pc has told one
|
||||
//of the villagers that they can attack, then this script will cause all of
|
||||
//the villagers convinced to run to a point where they will be spotted by the reavers.
|
||||
void main()
|
||||
{
|
||||
object o_ayla = GetObjectByTag("Ayla");
|
||||
int i_convinced = GetLocalInt(OBJECT_SELF, "convinced");
|
||||
int i_attack = GetLocalInt(o_ayla, "attacktime");
|
||||
int i_deathtime = GetLocalInt(o_ayla, "resetcountdown");
|
||||
object o_attackpoint = GetObjectByTag("wpayla_attackpoint");
|
||||
if(i_convinced == 1 && i_attack == 1)
|
||||
{
|
||||
AssignCommand(OBJECT_SELF, ActionForceMoveToObject(o_attackpoint, TRUE, 2.0));
|
||||
}
|
||||
if(i_deathtime > 1200)
|
||||
{
|
||||
DestroyObject(OBJECT_SELF);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user