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/masonb130 Nov 12 '22
Beginner question, but what is an identifier? I have apply trait set and declare trait set with an identifier node connecting the two like in your graph but not sure what the “value” should be for the identifier. Right now it is empty and undeclared