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

32 lines
659 B
Ucode
Raw Permalink Normal View History

2020-12-13 15:01:13 +00:00
/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
class SeqAct_CastToFloat extends SeqAct_SetSequenceVariable
native(Sequence);
cpptext
{
void Activated()
{
OutputLinks(0).bHasImpulse = TRUE;
FloatResult = (FLOAT)Value;
}
};
var int Value;
var float FloatResult;
defaultproperties
{
ObjName="Cast To Float"
ObjCategory="Math"
InputLinks(0)=(LinkDesc="In")
OutputLinks(0)=(LinkDesc="Out")
VariableLinks(0)=(ExpectedType=class'SeqVar_Int',LinkDesc="Int",PropertyName=Value)
VariableLinks(1)=(ExpectedType=class'SeqVar_Float',LinkDesc="Result",bWriteable=true,PropertyName=FloatResult)
}