Sir Henry Curtis
Regular

I've been puzzling and puzzling and now my puzzler is sore. I need a scene prop to take damage and not die. Well, I don't need it to really take damage, but I need the damage done to be passed to the second parameter of the ti_on_scene_prop_hit. Making the prop indestructible makes it so the damage isn't sent to the parameter, it seems. I tried replacing the prop with another prop of the same kind upon destruction like so:
That didn't work.
I could calculate the damage manually. I can't get the damage of the weapon being used, but there are only a handful of weapons that will be striking this prop, so I could test to see which weapon is being used and set the damage accordingly. I'd like to use that as a last resort, in the hopes that a better solution may be presented. I'm of the opinion that, if the need should arise, I should only need to update a weapon's damage only where it's defined.
插入代码块:
(ti_on_scene_prop_destroy,
[
(replace_scene_props,"spr_annealing_metal","spr_annealing_metal")
]),
I could calculate the damage manually. I can't get the damage of the weapon being used, but there are only a handful of weapons that will be striking this prop, so I could test to see which weapon is being used and set the damage accordingly. I'd like to use that as a last resort, in the hopes that a better solution may be presented. I'm of the opinion that, if the need should arise, I should only need to update a weapon's damage only where it's defined.


