playMaker

Author Topic: How to set enum variable in send event?[SOLVED]  (Read 1549 times)

vuiren

  • Playmaker Newbie
  • *
  • Posts: 4
How to set enum variable in send event?[SOLVED]
« on: April 11, 2020, 03:55:48 PM »
There is no default Enum in this action, i can't place it as object and Fsm.EventData don't contains anything related to enum.
I did a little work around it but is there actually no way to send enum?
« Last Edit: April 22, 2020, 02:24:23 AM by jeanfabre »

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Re: How to set enum variable in send event?
« Reply #1 on: April 11, 2020, 07:15:02 PM »
I've never noticed that Set Event Data was missing the enum variable. :P

You should just download the "Play Maker Utils" package from the ecosystem and use Get/Set Event Properties.

That does includes sending enums and tends to works even better.

vuiren

  • Playmaker Newbie
  • *
  • Posts: 4
Re: How to set enum variable in send event?
« Reply #2 on: April 12, 2020, 09:52:56 AM »
Thank you! Why is this not in playmaker by default?

vuiren

  • Playmaker Newbie
  • *
  • Posts: 4
Re: How to set enum variable in send event?
« Reply #3 on: April 12, 2020, 10:44:07 AM »
Turns out it's working only on 1.8 version and i've got 1.9. Why is this so troubleful to send enum?

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Re: How to set enum variable in send event?
« Reply #4 on: April 12, 2020, 12:03:31 PM »
Yep not working on 1.9 it would seem, the package will need to be updated.

Till then you could download "Convert String to Enum" from the ecosystem and use the "Convert Enum to String" I've attached with this post to convert your enum to a string when sending.

Will send jean a message asking him to update PlayMakerUtils.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to set enum variable in send event?
« Reply #5 on: April 14, 2020, 02:00:44 AM »
Hi,

 it's fixed, please updated playmaker utils from the Ecosystem, thanks :)

Bye

 Jean

vuiren

  • Playmaker Newbie
  • *
  • Posts: 4
Re: How to set enum variable in send event?
« Reply #6 on: April 18, 2020, 01:59:46 AM »
Thank you! Goodbye!