1
Resolved Questions / Re: How do i call events from code?
« on: February 27, 2015, 09:18:23 am »
Ohhh, so you use the "_customEvent_" prefix, thanks!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
var tmp : string;
tmp= __Text;
var num : int;
num= 4;
while(num<tmp.length-1)
{
ArrayUtil.insert ( tmp, num, ",");
}
return tmp;
Even though strings are arrays, i get this error:getGameAttribute("File") as Number
so the whole code wasgetActorTypeByName(_Filesbyorder[(getGameAttribute("File") as Number)])
Meaning this is solved thanks Rob
Code: getActorTypeByName(_Filesbyorder[_File])
_Filesbyorder is the list and _File is a global variable. This code is being used in a 'create actor type' block. What am i doing wrong? i tried using ' "File" ' but i get the same results. Please help