Hello, I found something very strange. I have object list that I want to fill it with array from my custom kismet node. When I fill array using for loop everything is ok and list is updated. But when I fill my array with AddItem list is not updated (however array is OK). I tried to do manual PopulateLinkedVariableValues() and It did not help me - list was still empty. I will be very happy if somebody can test it.
This does not work::
This works OK:
Kismet and output:
This does not work::
Code:
class SeqAct_ArrayAddItem extends SequenceAction;
var array<Object> MultipleOutput;
event Activated()
{
local Object FoundObject;
local int i;
super.Activated();
for(i=0;i<5;i++)
{
MultipleOutput.AddItem(new class'Object');
}
foreach MultipleOutput(FoundObject)
{
ScriptLog("AddItem"@string(FoundObject));
}
PopulateLinkedVariableValues();
}
defaultproperties
{
ObjName="Array Add Item"
ObjCategory="Array Test"
VariableLinks(0)=(ExpectedType=class'SeqVar_Object',LinkDesc="MultipleOutput",PropertyName=MultipleOutput,bWriteable=true)
}
Code:
class SeqAct_ArrayFor extends SequenceAction;
var array<Object> MultipleOutput;
event Activated()
{
local Object FoundObject;
local int i;
super.Activated();
for(i=0;i<5;i++)
{
MultipleOutput[i] = new class'Object';
}
foreach MultipleOutput(FoundObject)
{
ScriptLog("For"@string(FoundObject));
}
}
defaultproperties
{
ObjName="Array For"
ObjCategory="Array Test"
VariableLinks(0)=(ExpectedType=class'SeqVar_Object',LinkDesc="MultipleOutput",PropertyName=MultipleOutput,bWriteable=true)
}
