Alright so I don't know how many of you here are very familiar with Unreal Script but I figured I'd ask anyway. I'm trying to figure out a way to get a weapon to heal people when shot. Negative health doesn't work and I think there's some built in functionality for this already (the link gun can heal vehicles) but I don't…
I looked around some more, and it looks like the LinkGun function you mentioned is called HealDamage in Pawn.uc and Actor.uc. So the updated code would look like this: simulated function ProcessInstantHit(byte FiringMode, ImpactInfo Impact, optional int NumHits){ local Pawn P; if (Impact.HitActor != None &&…
I'm learning UnrealScript, too, and it looks like there are a number of ways to do this. If you want to use projectiles, you'll have to create a custom projectile class and then override the ProcessTouch function. If you want to use an instant hit weapon, you can override the ProcessInstantHit function in the weapon class…