playMaker

Author Topic: Get List Values  (Read 688 times)

edufurla

  • Playmaker Newbie
  • *
  • Posts: 46
    • View Profile
Get List Values
« on: September 24, 2018, 08:23:16 AM »
I don`t know if this is an advanced or noob topic, but someone knows how to get values from a list in the inspector tab.
Something like getting the size of the list (easy with "get property") and populate an array inside playmaker.
Is there a universal way that works with all kinds of lists (like materials, floats, gameobjects, etc..) or each case needs to be set up in its own way or by custom scripts?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5085
    • View Profile
    • jinxtergames
Re: Get List Values
« Reply #1 on: September 25, 2018, 12:05:16 AM »
Hi.
Is the script from a 3rd party asset?
Maybe there are some (dedicated) custom actions for it.

If not but you have some c# skills it is always best to communicate directly with the script with some custom actions or set some fsm variables directly from the script.

edufurla

  • Playmaker Newbie
  • *
  • Posts: 46
    • View Profile
Re: Get List Values
« Reply #2 on: September 25, 2018, 01:46:29 AM »
Thanks for your reply djaydino.
It is an old script with from a plugin with no Playmaker support.
I have no c# skills but I need to start sometime  :-\
Seems the second option can be less challenging to do. Do you have any scripts examples of how to set FSM variables from scripts that you can share?


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5085
    • View Profile
    • jinxtergames
Re: Get List Values
« Reply #3 on: September 25, 2018, 04:09:35 AM »
Hi,
Usually most assets have methods and or properties that are easy to implement.
From what assets is it?

You can check the api reference from playmaker to check how you can communicate,
but you probably won't understand much on how to implement it to a script.

Probably you should look to Accessing Scripts in a Custom Action
But if it is a list you probably need to change it to an array also.

If the script/asset is not licence per seat you can send me the script and i can have a look

edufurla

  • Playmaker Newbie
  • *
  • Posts: 46
    • View Profile
Re: Get List Values
« Reply #4 on: September 26, 2018, 01:38:49 AM »
Thanks djaydino.
I will take a look on that.