playMaker

Author Topic: (Post-Poned) Arraymaker Set Key  (Read 1480 times)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
(Post-Poned) Arraymaker Set Key
« on: March 18, 2014, 11:40:53 AM »
Hi All, I think I am getting a handle on arraymaker :D

but I have a question concerning hashtables. How can I change a key depending on the variable of the key???

Example: I have a gameObject called 'building', I need arraymaker to change the key it has from 'key 0' to 'civilian'. That way I can later identify that building as the civilian type in arraymaker.
« Last Edit: March 18, 2014, 11:58:22 AM by sebaslive »
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Arraymaker Set Key
« Reply #1 on: March 18, 2014, 11:49:42 AM »
Hi,

 You can't with one action currently. For this you would store the value in a variable, then add a new entry, using your new key and that value, and delete the previous key.

I have added this to trello, so when I'll have time I'll create a convenient action for this.

https://trello.com/c/FamlVQBD/31-arraymaker-update

 bye,

 Jean

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Arraymaker Set Key
« Reply #2 on: March 18, 2014, 11:57:48 AM »
Thanks Jean, I will try that out
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez