View Single Post
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 04-03-2021 , 14:26   Re: Entity not being created
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
Your code looks ok.

I think is missing a debug to detect what is touching the entity, probably with that info you can understand what is happening

Otherwise, try waiting for a frame (or create a timer to test) before spawning the entity.
Maybe it is touching the death player itself (even with the IsPlayerAlive(client))

Also doesn't make much sense comparing the model in the OnTouchEntity check
Thanks for your reply. I already tried to do some debugging. I also tried to kill the opponent in a far distance, but it still says that I have touched it!

With the timer do you mean creating it before deleting it?
__________________
SpirT is offline