Hi,
I want to pass the integar array to a javascript array via a function. How do i go about doing that??
Here’s what i am doing:
Loader.cs
//This function serves as a checkup and returns the required array
public int[] StepData(string stepIdString)
{
//populating the array//works fine checked it with debugger
return stepData;
}
In my character:
behavior.js //<- JS not Csharp here
// Something like: var array = StepData(2)
Can someone help me out on this one? I don’t know if this is a re-post, if it is then my apologies… in that case point me out
I don’t need to tell that I am a newbie, because i totally am and thanks alot in advance!