LethDavidson
Member
Howdy,
So I'm making it so that some weapons hurt shields more than health, my thought is to use a custom event script to do the various checks and the logic i need to do when hit. however, the thing being hurt still takes damage ONTOP of whatever calcs i do. How do i get it so that my events ovveride what happens to the health component ( i shoot box with HEALTH, my script chekcs attackerObject type, then i manually apply damage), OR is that not what the events are for and i need to actually write a custom/make an adaptation of your HP script that has these sorts of checks builtinto it (check if dam is Plasma vs bullet, do X) instead of me doing in an attached script?
Much appreciated!
So I'm making it so that some weapons hurt shields more than health, my thought is to use a custom event script to do the various checks and the logic i need to do when hit. however, the thing being hurt still takes damage ONTOP of whatever calcs i do. How do i get it so that my events ovveride what happens to the health component ( i shoot box with HEALTH, my script chekcs attackerObject type, then i manually apply damage), OR is that not what the events are for and i need to actually write a custom/make an adaptation of your HP script that has these sorts of checks builtinto it (check if dam is Plasma vs bullet, do X) instead of me doing in an attached script?
Much appreciated!