Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2023-09-21 19:51:32 -04:00
parent 65b5bd7fd3
commit 102ba7dab6
6400 changed files with 5741850 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include "hench_i0_assoc"
void main()
{
object oRealMaster = GetRealMaster();
object oClosest = GetNearestCreature(CREATURE_TYPE_REPUTATION, REPUTATION_TYPE_ENEMY,
oRealMaster, 1);
if (GetIsObjectValid(oClosest) && GetDistanceBetween(oClosest, oRealMaster) <= henchMaxScoutDistance)
{
SetLocalInt(OBJECT_SELF, sHenchScoutingFlag, TRUE);
SetLocalObject(OBJECT_SELF, sHenchScoutTarget, oClosest);
ClearAllActions();
if (CheckStealth())
{
SetActionMode(OBJECT_SELF, ACTION_MODE_STEALTH, TRUE);
}
ActionMoveToObject(oClosest, FALSE, 1.0);
ActionMoveToObject(oClosest, FALSE, 1.0);
ActionMoveToObject(oClosest, FALSE, 1.0);
}
else
{
DeleteLocalInt(OBJECT_SELF,sHenchScoutingFlag);
}
}