playMaker

Author Topic: Weirdness of Playmaker global events  (Read 935 times)

Fitbie

  • Playmaker Newbie
  • *
  • Posts: 31
Weirdness of Playmaker global events
« on: April 08, 2022, 06:06:57 AM »
Hi HutongGames! Question about Playmaker Global Events.
I noticed one thing. Global events are not always necessary. For example, when I send a global event from one FSM to another FSM, I need a global event. And when sending from animator, some scripts, or, Dialogue System from Pixel Crushers(directly from conversation or from Usable components or other scripts etc.) global event is not required. Can you tell me if it's safe, or is it better to check "Global"? And why does this happen, it confuses me a bit, cause i often send event to Playmaker from Dialogue or animator. Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7621
    • jinxtergames
Re: Weirdness of Playmaker global events
« Reply #1 on: April 12, 2022, 10:16:31 AM »
Hi.
You can use Send Event By Name, then it is not required to use global.

If set to global they are added to a list so you can access them with a Send Event.

Just a tip : you can create subfolders for events and variables by using a /

for example : Player/Jump Player/Attack Player/Run
« Last Edit: April 12, 2022, 10:18:11 AM by djaydino »

Fitbie

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Weirdness of Playmaker global events
« Reply #2 on: April 16, 2022, 07:48:25 AM »
Hi! Yeah, my question was more of a "if the sending of events happens without specifying "Global Event" - can something bad happen? Is it necessary to check "Global Event" if everything works without it? :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7621
    • jinxtergames
Re: Weirdness of Playmaker global events
« Reply #3 on: April 16, 2022, 10:17:15 AM »
Hi.
No its not necessary.
If you are using the events in the same fsm there is no need to set Global.

if you want to receive events from different fsm you 'can' use Global.