Jump to content

Scripting Help


FoxiShandris

Recommended Posts

I'm working on a mod that adds a functional healing gun to heal NPCs that are hit by the projectile and, in borrowing the script for the Medical Eyebots from Lonesome Road, have got everything nailed down except for one thing...

 

The weapon I attached the ammunition to does no damage, successfully heals the target, but also makes them hostile. I'm looking for a way to make it so they won't turn hostile when hit with the projectile. Can anyone help? Here's the script so far:

 

 

SCN NVDLC04HealUlyssesSCRIPT


;Heals Ulysses when he is hit by a projectile
;DM 3/21/11


BEGIN ScriptEffectStart

RestoreActorValue PerceptionCondition 100;
RestoreActorValue EnduranceCondition 100;
RestoreActorValue LeftAttackCondition 100;
RestoreActorValue RightAttackCondition 100;
RestoreActorValue LeftMobilityCondition 100;
RestoreActorValue RightMobilityCondition 100;
RestoreActorValue Health 25;

END

BEGIN ScriptEffectUpdate

RestoreActorValue PerceptionCondition 100;
RestoreActorValue EnduranceCondition 100;
RestoreActorValue LeftAttackCondition 100;
RestoreActorValue RightAttackCondition 100;
RestoreActorValue LeftMobilityCondition 100;
RestoreActorValue RightMobilityCondition 100;
RestoreActorValue Health 25;

END

BEGIN ScriptEffectFinish

RestoreActorValue PerceptionCondition 100;
RestoreActorValue EnduranceCondition 100;
RestoreActorValue LeftAttackCondition 100;
RestoreActorValue RightAttackCondition 100;
RestoreActorValue LeftMobilityCondition 100;
RestoreActorValue RightMobilityCondition 100;
RestoreActorValue Health 25;

END

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...