playMaker

Author Topic: Spawned Prefabs Randomly Triggering Event  (Read 1893 times)

jjbanks

  • Playmaker Newbie
  • *
  • Posts: 3
Spawned Prefabs Randomly Triggering Event
« on: August 13, 2012, 06:43:10 PM »
Hey Guys -

Having a little trouble with Prefabs detecting Trigger Events.  I currently have enemies spawning using a Create Object state on a 1 second timer.  The spawned enemies have their own FSM that uses a trigger event to destroy the object if it collides with a collider that has the tag "Hero".  If I manually place enemies in the scene - they all correctly die on impact with the "Hero" object/collider.   However, when they spawn, they are only destroyed randomly, and some don't even get destroyed at all. 


I've been searching the forums for the last couple hours and found a few posts - but none seem to have quite my problem.  Is there some type of universal reset / retrigger per object I am missing?


thanks!  :)


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Spawned Prefabs Randomly Triggering Event
« Reply #1 on: August 14, 2012, 02:47:52 AM »
Hi,

 could it be that when you spawn them , they are colliding already? if that's the case, you'll likely miss the events yes.

bye,

 Jean