View Full Version : When AI shoots to Player , It Does not effect .
02-18-2012, 02:49 PM
I have Pawn, It extends from UTPawn , But there is a problem:
When AI shoots to player , It does not any effect.
What is my problem?
I check it in another method :
I Pick up rocket and shoot near the player but it doesn't effect too.
02-18-2012, 03:04 PM
What do you mean by "not any effect"?
Does it pass through? Or does it collide but doesn't subtract health? Or something else?
02-19-2012, 01:13 AM
it means "Doesn't subtract health"
Player has collision but health doesn't subtract.
My AI Pawn extends UTPawn too but when player shoots AI , AI's health subtracts.
02-19-2012, 01:16 AM
...AI and Player have the same Pawn class?
02-19-2012, 01:38 AM
My Player class is MyPawn and it extends from UTPawn
my AIPawn extends from MyPawn
02-19-2012, 01:49 AM
Put some logs in to TakeDamage to know if is called on player.
02-19-2012, 01:51 AM
I did it , and TakeDamage event is running.
02-19-2012, 02:03 AM
Well, that's weird... Have you modified TakeDamage - i mean overwritten? If true, post that part of code.
02-19-2012, 02:19 AM
I didn't override .
It inherits the TakeDamage from UTPawn
02-19-2012, 03:53 AM
it's kidding me
I'm testing my game in example map
in the example map GOD mod is on
02-19-2012, 04:26 AM
@Mahdavi: lol, I hate those kinds of issues! :)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.