How to use console command that takes struct as parameter?

Hello,

I’m trying to call a function on an Actor via console command.

This works fine whenever I call a function that takes int, float, bool, string or void
e.g.

ke someactorname SetActorHiddenInGame 1

but I’m struggling with functions that take a struct.
For example, SetActorScale3D takes FVector as parameter and whenever I try to call it, the parameter never gets recognized.
e.g.

ke someactorname SetActorScale3D 10 10 10

gives me error about missing parenthesis:

(I also tried multiple other variations as you can see)

Anyone knows the answer?


Sorry, if I’ve used bad/misleading category for this post. I was unable to find any better one.

what about this: Passing vector as parameter to console function - #4 by Zikoko

1 Like

Thanks @CrazyMage

(X=1,Y=1,Z=1) indeed works

not sure how I missed the post that you linked in the first place

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.