PDA

View Full Version : When AI shoots to Player , It Does not effect .



mahdavi
02-18-2012, 01:49 PM
Hi everyone,
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.

Graylord
02-18-2012, 02: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?

mahdavi
02-19-2012, 12: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.

VendorX
02-19-2012, 12:16 AM
...AI and Player have the same Pawn class?

mahdavi
02-19-2012, 12:38 AM
My Player class is MyPawn and it extends from UTPawn
my AIPawn extends from MyPawn

VendorX
02-19-2012, 12:49 AM
Put some logs in to TakeDamage to know if is called on player.

mahdavi
02-19-2012, 12:51 AM
I did it , and TakeDamage event is running.

VendorX
02-19-2012, 01:03 AM
Well, that's weird... Have you modified TakeDamage - i mean overwritten? If true, post that part of code.

mahdavi
02-19-2012, 01:19 AM
No
I didn't override .
It inherits the TakeDamage from UTPawn

mahdavi
02-19-2012, 02:53 AM
Solved

it's kidding me
I'm testing my game in example map
in the example map GOD mod is on

Rdshft
02-19-2012, 03:26 AM
@Mahdavi: lol, I hate those kinds of issues! :)