Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: sebaslive 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.
-
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
-
Thanks Jean, I will try that out