Blueprint function to c++

Hi i need help to convert this blue print to c++

my idea is this:


void Construccion(FVector Origen,FVector& Destino);


void Personaje::Construccion(FVector Origen,FVector& Destino){
Origen.X = (int)(Origen.X/400)*400;
Origen.Y = (int)(Origen.Y/400)*400;
Origen.Z = (int)(Origen.Z/400)*400;

and how would you call it to spaw an object

void Character::SpawnObject(){
//How call function Construccion



You mean you want to call it on spawned object?