Here is the situation: I want to kill a player within a mutator. I first tried "C.Pawn.KilledBy(None);"(C is a controller that control a pawn). The little problem is since this function suicide the player, it remove one of his kill and I don't want to. While looking in the pawn.uc code, I saw an interesting function called "TakeDamage". I wrote the the following code to kill that player like if he had died by falling.
Somehow the code don't want to compile. The error 48 is shown with that error message : "error, Call to 'TakeDamage': type mismatch in parameter 4".
Anyone can tell me why?
Code:
C.Pawn.Health = 1; C.Pawn.TakeDamage(1, C.Pawn, C.Pawn.Location, 1, class'Crushed');
Anyone can tell me why?
Comment