1
0
KF2-Dev-Scripts/Engine/Classes/SeqAct_GetVectorComponents.uc

32 lines
787 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
class SeqAct_GetVectorComponents extends SequenceAction
native(Sequence);
var vector InVector;
var float X, Y, Z;
cpptext
{
void Activated()
{
X = InVector.X;
Y = InVector.Y;
Z = InVector.Z;
OutputLinks(0).bHasImpulse = TRUE;
}
};
defaultproperties
{
ObjName="Get Vector Components"
ObjCategory="Math"
VariableLinks.Empty
VariableLinks(0)=(ExpectedType=class'SeqVar_Vector',LinkDesc="Input Vector", PropertyName=InVector)
VariableLinks(1)=(ExpectedType=class'SeqVar_Float',LinkDesc="X",PropertyName=X)
VariableLinks(2)=(ExpectedType=class'SeqVar_Float',LinkDesc="Y",PropertyName=Y)
VariableLinks(3)=(ExpectedType=class'SeqVar_Float',LinkDesc="Z",PropertyName=Z)
}