Passing vector as parameter to console function

I have made a console function that has a Vector as an input parameter, but i’m not quite sure what syntax
should I use to pass the param
I’ve tried:
0,0,0
0.0.0
0 0 0
(0,0,0)
(X=0,Y=0,Z=0)

But nothing works.
Any idias?
P.S. Other params, such as int float bool string are fine.

How about this, pass a string as a the parameter and divide the string into X Y Z using a divider.

Solution 1 : Input : 34.5|56.05|23.67

Solution 2: Input X_34.5|Y_56.05|Z_23.67

Solution 3: Input: 34.5 56.05 23.67 // Divide by space character

I will parse the values based on the position of ‘|’ and make a vector out of the 3 floats that i just parsed

Thnx for answering.
But the thing is that i’m looking for already complete solution in terms of ue4 console system.

It is not a problem to make parser for vector, aspecially when its already implemented, you can use “key=,value=” to build a string and than get from it what you need.
Unfortunately it’s not what i’m looking for

After debuging I found out that the (X=0,Y=0,Z=0) is working fine.
But for some some reason it was not yesterday =(

Anyway, that is the answer!

1 Like

I also need to use console function with vector as input parameter, can you show me the code?
thank you

  • Young, Seo