playMaker

Author Topic: Multiple Triggers Problem [SOLVED]  (Read 2481 times)

cdillard

  • Playmaker Newbie
  • *
  • Posts: 18
Multiple Triggers Problem [SOLVED]
« on: November 01, 2012, 09:54:24 PM »
Hello all.

I am having a problem with making an explosion. I made an empty game object and attached a collider to it. On Trigger Enter, I am sending an event to the game object that entered the object.

All this is working fine except it only works on ONE entered object. So, for example, a grenade is only applying damage to one enemy soldier.

Any ideas on how to fix this? Thanks in advance.
« Last Edit: November 03, 2012, 09:05:32 PM by cdillard »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Multiple Triggers Problem
« Reply #1 on: November 02, 2012, 01:17:43 AM »
Hi,

 It depends who is implementing the trigger.

 If the grenade is implementing the trigger, that could be an issue if all ennemies are within very close range or at the same distance as the grenade.

 I would suggest that each ennemy implement this grenade trigger and see if it works better.

 also, I assume that all your ennemies are prefab instance originating from the same prefab, else double check that indeed all your ennemies are properly set up to receive damage in the first place.

bye,

 Jean

cdillard

  • Playmaker Newbie
  • *
  • Posts: 18
Re: Multiple Triggers Problem
« Reply #2 on: November 03, 2012, 09:04:54 PM »
Thanks Jean. I went with just putting the collision code on the individual soldiers and it seems to be working fine. I am not SOLVED.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Multiple Triggers Problem [SOLVED]
« Reply #3 on: November 05, 2012, 12:38:17 AM »
Hi,

 is it solved or not then? not too sure with your wording of your reply :)

bye,

 Jean