How to implement C++ funcions and call it in blueprints

RHERWOLF
Thu, 01 Mar 2018 23:56:17 +0000
Blueprint

I need to do something like it.

float Level( int Xp ){
    float temporary = Xp ;
    temporary = sqrt( temporary ) ;
    temporary = sqrt( temporary ) ;
    return min( 1.0f+temporary , 100.0f );
}

How to do it?

From the files creation until the function call.

Is needed a C++ class? Or no?

Can it be like a common C++ function library?

Note: I’d forged the image.

6 posts - 1 participant