Hi,
I’m implementing shield for my actor. If the actor collide with shield, the actor will be shielding for 5 second. If the actor is being shielded, the enemy can’t destroy the actor. The problem is when the enemy move over the shielded actor and while the enemy is still overlapping the actor the shield time is over, I can’t get the actor destroyed.
I use “began” phase of collision to destroy the actor when it collide with enemy and I know it is because the collision already fire while the actor is being shielded so it won’t fire again even they are overlapping thus the unshielded actor can’t be destroyed.
Look like the solution is to call a function (from the function I change shield var to false) to check if the object is still overlapping and then destroy the actor.
Any suggestion? Thanks.
Steve [import]uid: 84159 topic_id: 14678 reply_id: 314678[/import]