Jump to content

Photo

Need this damage script to affect enemies, not only the player.

script damage npc

  • Please log in to reply
3 replies to this topic

#1
JPTR1

JPTR1

    Old hand

  • Members
  • PipPipPip
  • 504 posts

Hello,

i would need a reliable triggerzone(firetrap) to kill an NPC, no matter which Level, which resistences, it has. 

If i use the "DB10FireDamageTriggerBox" for example, its not able to kill my enemy at high levels, and on low levels it dies to fast, same for the player.

 

Now i found this script, seems to have a constant percentage damage output, ignoring armor and resistences, which is perfect, but it only affects the player.

Is there any chance to let this script affect the NPC only and ignore the player?

 

Spoiler


Edited by JPTR1, 27 November 2021 - 09:56 PM.


#2
ReDragon2013

ReDragon2013

    Old hand

  • Members
  • PipPipPip
  • 740 posts

jptLightDamageTriggerScript

Spoiler

 

Keep in mind this is a concept. You have to try it is working for your purpose!

 

And you have to create an empty formlist with the creation kit, that can be used to fill the script property ActorList !!


Edited by ReDragon2013, 09 December 2021 - 01:04 PM.


#3
JPTR1

JPTR1

    Old hand

  • Members
  • PipPipPip
  • 504 posts

Thanks a lot ReDragon! I will check this out.



#4
ReDragon2013

ReDragon2013

    Old hand

  • Members
  • PipPipPip
  • 740 posts

Sorry I mad a mistake in my code. Please check my first posting here again!

State Action
   ; some code inside
endState

 







Also tagged with one or more of these keywords: script, damage, npc

IPB skins by Skinbox
Page loaded in: 1.022 seconds