26 lines
624 B
Plaintext
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
|
|
}
|