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.
I tried this setup, but it didn't work. I kind of figure that it also has to do with:
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){...}