playMaker

Author Topic: Pass a string from javascript to FSM  (Read 1397 times)

Megisto

  • Playmaker Newbie
  • *
  • Posts: 28
Pass a string from javascript to FSM
« on: February 20, 2014, 12:24:24 PM »
Hi,

i know this topic has been discussed before, but i cannot find the syntax to achieve this.

In a js I have a string which change in a "for in" loop. I'd like to instantiate a prefab  (with an FSM on it) on each loop and send the string of that loop at the created Instance.

basically:

Javascript:
loop > instantiate a prefab with FSM > send "string1" to FSM
loop > instantiate a prefab with FSM > send "string2" to FSM
...

Is it possible?

thx

vienem

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Pass a string from javascript to FSM
« Reply #1 on: February 22, 2014, 02:50:08 PM »
check this topic out

http://hutonggames.com/playmakerforum/index.php?topic=1759.0

hope it helps and good luck :)