Hide bone through Kismet

Thanks for your help as usual.

I updated the code:



simulated function OnBoneRemoval(SeqAct_BoneRemoval action)
{	
	local Sequence GSeq;
	local array<SequenceObject> AllSeqObjs;
	local int i;
	local name FoundBone;

	GSeq = class'WorldInfo'.static.GetWorldInfo().GetGameSequence();
	if(GSeq != None)
	{
		GSeq.FindSeqObjectsByClass(class'SeqAct_BoneRemoval', true, AllSeqObjs);
		for(i = 0; i < AllSeqObjs.length; i++)
		{
			FoundBone = SeqAct_BoneRemoval(SeqObjs*).Value;
		}
	}
	HideBoneByName(FoundBone,PBO_Term);
}


I still get an error. :frowning:

Why do HideBone and similar fuctions not work if I pass them multiple values anyway? I would have been done ages ago if it wasn’t for that error.