mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-08-01 02:16:04 -04:00
37 lines
745 B
Plaintext
37 lines
745 B
Plaintext
/***** INCLUDES ********************************************************/
|
|
|
|
/***** CONSTANTS *******************************************************/
|
|
|
|
int INITIAL_DELAY = 1;
|
|
|
|
/***** TRIGGERS ********************************************************/
|
|
|
|
trigger OnAttach()
|
|
{
|
|
if (hasScript(self, "ai.ai"))
|
|
{
|
|
detachScript(self, "ai.ai");
|
|
}
|
|
|
|
if (hasScript(self, "ai.creature_combat"))
|
|
{
|
|
detachScript(self, "ai.creature_combat");
|
|
}
|
|
|
|
if (hasScript(self, "systems.combat.credit_for_kills"))
|
|
{
|
|
detachScript(self, "systems.combat.credit_for_kills");
|
|
}
|
|
|
|
if (hasScript(self, "systems.combat.combat_actions"))
|
|
{
|
|
detachScript(self, "systems.combat.combat_actions");
|
|
}
|
|
|
|
setPosture( self, POSTURE_KNOCKED_DOWN );
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|