playMaker

Author Topic: [Solved] Send Event not sending event  (Read 1712 times)

EricColossal

  • Playmaker Newbie
  • *
  • Posts: 5
[Solved] Send Event not sending event
« on: January 26, 2015, 09:26:38 PM »
Hello,

I have a scene set up where a raycast is shot from the camera and whatever object it hits, that object is added to a global variable, call it HitObject.

I have another object called HitObjectManager that has a Send Event in it. This Send Event is hooked up to the global variable HitObject and it tries to send the global event "Shot" every frame.

It does not send the event. If I put the Send Event in the same FSM as the raycast, it works. Copying and pasting that working action into the HitObjectManager produces no results. The HitObject updates but the event is not sent.

Any ideas?
Eric
« Last Edit: January 26, 2015, 10:09:10 PM by EricColossal »

EricColossal

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Send Event not sending event
« Reply #1 on: January 26, 2015, 10:08:59 PM »
Figures, I post about it and then solve it 5 minutes later.

The "Every Frame" seemed to be causing the problem. I broke it out to only check when the object hit is different than the last object hit and it works perfectly.