mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
27 lines
536 B
Plaintext
27 lines
536 B
Plaintext
include library.utils;
|
|
include library.create;
|
|
include library.space_transition;
|
|
include library.space_crafting;
|
|
include library.skill;
|
|
include library.vehicle;
|
|
|
|
|
|
|
|
trigger OnCreatureDamaged( obj_id attacker, obj_id weapon, int[] damage )
|
|
{
|
|
setAttrib(self, HEALTH, getMaxAttrib( self, HEALTH ));
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnObjectDamaged(obj_id attacker, obj_id weapon, int damage)
|
|
{
|
|
setHitpoints(self, getMaxHitpoints(self));
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
return SCRIPT_OVERRIDE;
|
|
}
|
|
|