HoS_PRC8/_mod/_module/nss/animal_ex_flee.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

12 lines
388 B
Plaintext

void main()
{
object oMe=OBJECT_SELF;
object oDamager=GetLastDamager();
if (GetIsObjectValid(oDamager))
{ // object exists
AssignCommand(oMe,ClearAllActions(TRUE));
AssignCommand(oMe,PlayVoiceChat(VOICE_CHAT_PAIN1));
if (GetObjectSeen(oDamager,oMe)) AssignCommand(oMe,ActionMoveAwayFromObject(oDamager,TRUE,80.0));
} // object exists
}