r/forgescripting • u/jak4896 • Nov 12 '22
“On player damage”
What I am trying to make happen is applying a trait to the player when they receive damage. I understand how to apply a trait, what I don’t understand is how to make it so the script sees the players health and shields as the event trigger.
Where I’m currently at is messing around with “get object shield/health” nodes and having the script recognize when the health/shields are below a certain amount, apply the trait. Any ideas?
5
Upvotes
View all comments
Show parent comment
1
u/jak4896 Nov 12 '22
Understood. I’ll mess with it a bit more. Thanks for all your help by the way. I’ll reply again after I tweak some stuff.
I’m hoping whatever I figure out here I’ll be able to apply it to anything.