![]() |
![]() |
|
|
|
#1
|
||||
|
||||
|
hi,
i would like to detect if a player cause damage at Specimen. I use the NetDamage function : Code:
function int NetDamage( int OriginalDamage, int Damage, pawn injured, pawn instigatedBy, vector HitLocation, out vector Momentum, class<DamageType> DamageType )
{
local KFPlayerController player;
player = KFPlayerController(instigatedBy.Controller);
.
.
.
}
player = KFPlayerController(instigatedBy.Controller); When I want to test if a specimen have a headShot damage, but my KFplayerController allway equal none ... ![]() Someone can help me? Thanks! |
|
#2
|
|||
|
|||
|
As far as I'm aware the NetDamage function isn't called for specimens (see the ReduceDamage function in KFGameType.uc), so what you want to do won't be possible this way. I may be wrong though, so if anyone could shed some light on this it'd be helpful!
__________________
|
|
#3
|
||||
|
||||
|
That's what it seems to me, because I did a test and when a specimen touch a player , the function work.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|