Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mythonitestudios on September 30, 2021, 07:27:41 PM

Title: Property Reset on "Get Property" action
Post by: mythonitestudios on September 30, 2021, 07:27:41 PM
Hello everyone! I have a script which will data values from a scriptable object and assign them. My issue is when I use the "Get Property" action, it sets the variable to "None." The reason I'm attempting to use the Get Property action is to load the scriptable object into the container, since it will populate the other variables. Here is the script where I would like to change the "creatureBase" from a scriptable object https://imgur.com/a/wrmYTgC. Here is what the inspector and states looks like https://imgur.com/a/Cuy1uHp. Any ideas?
Title: Re: Property Reset on "Get Property" action
Post by: mythonitestudios on September 30, 2021, 07:35:47 PM
I should mention that while playing, the action works fine. However, when I first start the game and call the action, that is when the property gets set to "none." It's odd.
Title: Re: Property Reset on "Get Property" action
Post by: djaydino on October 02, 2021, 09:54:56 AM
Hi.
The script is not a scriptable game object.
if you want to learn more about scriptable objects look here : Playmaker + Scriptable Objects = Win (https://hutonggames.com/playmakerforum/index.php?topic=20829.0)