Player-healing Link Gun, Need help

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

notoriousthief

New Member
Mar 9, 2010
2
0
0
I posted this on original forums, but I have yet to receive help. I don't know if this is a good place to ask either.

I'm modifying the link gun so it can heal teammates. The problem is that I do not know what the teammate filename should be, or if there's another way of setting it up.

Code:
if (LinkedTo.IsA('UTVehicle') || LinkedTo.IsA('UTGameObjective') || [B]LinkedTo.IsA('UTsomething?')[/B] )
{
   // use ammo only if we actually healed some damage
  if ( LinkedTo.HealDamage(DamageAmount * Instigator.GetDamageScaling(), Instigator.Controller, InstantHitDamageTypes[1]) )
     ConsumeBeamAmmo(SavedAmmoUse);
}

else if (Victim != None && WorldInfo.Game.GameReplicationInfo.OnSameTeam(Victim, Instigator))
{
if ( LinkedTo.HealDamage(DamageAmount * Instigator.GetDamageScaling(), Instigator.Controller, InstantHitDamageTypes[1]) )
    ConsumeBeamAmmo(SavedAmmoUse);
}

I tried this setup, but it didn't work. I kind of figure that it also has to do with:
Code:
function bool CanHeal(Actor Other){...}
 

notoriousthief

New Member
Mar 9, 2010
2
0
0
Ok, how would I apply it to the second function for the color stream, and not have it auto-lock on teammate?

function bool CanHeal(Actor Other){...} is probably what causes the color stream change, but as above, I don't know the proper function name.
 
Last edited: