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

26 lines
624 B
Plaintext

#include "x3_inc_horse"
void fnParalyze()
{ // PURPOSE: Paralyze horse
object oHorse=OBJECT_SELF;
if (GetLocalInt(oHorse,"bParalyzed"))
{ // keep setting
effect eParalyze=EffectCutsceneImmobilize();
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eParalyze,oHorse,3.1);
DelayCommand(3.0,fnParalyze());
} // keep setting
} // fnParalyze()
void main()
{
object oPC=GetPCSpeaker();
object oHorse=HorseGetHorse(oPC);
if (GetIsObjectValid(oHorse))
{ // paralyze
SetLocalInt(oHorse,"bParalyzed",TRUE);
AssignCommand(oHorse,fnParalyze());
} // paralyze
}