Params not passing correctly

Forum to discuss MLScript plugin that enables VBScript and JavaScript scripting within MLServer3.
User avatar
itanic
Intermediate
Intermediate
Posts: 455
Joined: Tue Jun 15, 2004 10:05 am
Location: Oregon
Contact:

Params not passing correctly

Postby itanic » Fri Oct 03, 2008 1:52 pm

On scene startup I’m issuing the following command MLScript|RemoteInitialize~{{default_zone_{{clientname}}}}~{{clientname}}

I see this command (with the proper variable translations) being sent within the MLSever log such as “RemoteInitialize~theater~theaterpc”

Within the body of the script I have the following commands.
MLServer.SetVariable “Params0”, Params(0)
MLServer.SetVariable “Params1”, Params(1)

Problem is …
The Params(0) works as expected (returns “theater” in the above example) however the Params(1) - clientname seems to be a hit and miss. When I simply refresh the ML scene it seems to work as expected. However when I go to the scene from another scene, it returns a blank even though I see it being passed correctly from the log.

I’m just beginning to use MLScript so I may be missing something obvious. Any help would be appreciated.

User avatar
itanic
Intermediate
Intermediate
Posts: 455
Joined: Tue Jun 15, 2004 10:05 am
Location: Oregon
Contact:

Postby itanic » Fri Oct 03, 2008 3:31 pm

Got it working. I was not passing the {{clientname}} variable in my cyclestates command. All seems good now.

Sorry for the bother.


Return to “MLScript”

Who is online

Users browsing this forum: No registered users and 1 guest