Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: PET on May 10, 2016, 06:23:35 AM

Title: Set Global Variable from Variable
Post by: PET on May 10, 2016, 06:23:35 AM
Hello there,

I have an object that when it's "initializing" it set's up 2 variables.
I want in an later state... to get those 2 variables and set them to some Global Variables.

How can I do this?

Also:
I know there is an action that is just a text... but I can't find it. How is it called?
It's an action that just has a text field where you can set up some text as info.

Thanks <3

EDIT:
-----------
I know that I can "Set Fsm Variable" ... but I don't want to set the variable of a FSM. I want to set a global variable.
Title: Re: Set Global Variable from Variable
Post by: joduffy on May 10, 2016, 07:39:59 AM
Here you go dude:

http://jonathanoduffy.com/playmaker-forum-q-set-global-variable-variable (http://jonathanoduffy.com/playmaker-forum-q-set-global-variable-variable)

Hope it helps. If your have any questions let me know.
Title: Re: Set Global Variable from Variable
Post by: PET on May 10, 2016, 11:03:58 AM
he thanks. You managed to set me up on the right path. You didn't understood all the things I wanted but I did a pretty bad job explaining.

But as I said, you set me up on the right path:
(http://puu.sh/oMREj/7daf477fef.png)

My second request was the name of the action that... all it does it have a text fiend inside playmaker. Like a description, nothing else. It's just an action with a text box where you write stuff ... no string, no variables, just a text box.

Thanks
Title: Re: Set Global Variable from Variable
Post by: Alex Chouls on May 10, 2016, 12:56:19 PM
There is a Comment action in the Debug category. I think you're probably thinking of that...?
Title: Re: Set Global Variable from Variable
Post by: PET on May 11, 2016, 04:18:12 AM
Yeessss... it was Comment :D

EDIT:
Just an update to my previous screenshot... the variables have to be the other way around, like this:
(http://puu.sh/oNNsW/1df8b7883a.png)

I was like... why the hell my variables witch to NONE, is it because I use a template?

Nope.

Object Variable - is the variable you want to set the value, in my case my Global Variable
Object Value - is the value I want to apply to the global variable.

It looks like this during PlayMode:
(http://puu.sh/oNNxK/e1ccb3f0d8.png)