playMaker

Author Topic: Getting public variables from outside Playmaker  (Read 933 times)

a1laserboy

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Getting public variables from outside Playmaker
« on: August 14, 2018, 03:09:43 PM »
Hi guys,

Is there a way to get a public variable declared outside PM into PM?

Probably the dumbest question in the world, but it has me stumped.

Cheers :)

Doh

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Getting public variables from outside Playmaker
« Reply #1 on: August 15, 2018, 05:16:59 AM »
Get Property should be of use to you.

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1215
    • View Profile
    • Fat Pug Studio
Re: Getting public variables from outside Playmaker
« Reply #2 on: August 15, 2018, 07:11:57 AM »
And make sure you use linker wizard for builds if you're using get property.
Available for Playmaker work

a1laserboy

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Getting public variables from outside Playmaker
« Reply #3 on: August 15, 2018, 08:49:54 AM »
Thanks Guys, I wasn't seeing the variable using Get Property, perhaps the linker wizard will show it up. I kind of fixed it myself also.

As the variable is public, and as it happens to be getting placed into a text box on UI, I simply attached an FSM to the text box and used UI Text Get Text and put it into a PM global variable.

I'll try out the linker wizard now.