# How to use console command that takes struct as parameter?

**URL:** <https://forums.unrealengine.com/t/how-to-use-console-command-that-takes-struct-as-parameter/1329861>\
**Category:** Programming & Scripting\
**Tags:** Console, console-commands, console-command, unreal-engine, question\
**Created:** [October 11, 2023, 11:22pm UTC](https://forums.unrealengine.com/t/how-to-use-console-command-that-takes-struct-as-parameter/1329861 "2023-10-11T23:22:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzemzmcdonalda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dzemzmcdonalda/32/1214680_2.png) [@dzemzmcdonalda](https://forums.unrealengine.com/u/dzemzmcdonalda)\
**Post date:** [October 11, 2023, 11:22pm UTC](https://forums.unrealengine.com/t/how-to-use-console-command-that-takes-struct-as-parameter/1329861/1 "2023-10-11T23:22:30Z")

</div>

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.

```auto
ke someactorname SetActorHiddenInGame 1

```

but I’m struggling with functions that take a struct.  
For example, [SetActorScale3D](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Engine/GameFramework/AActor/SetActorScale3D/) takes FVector as parameter and whenever I try to call it, the parameter never gets recognized.  
e.g.

```auto
ke someactorname SetActorScale3D 10 10 10

```

gives me error about **missing parenthesis** :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/f/b7f0247129a2f9b8632177efde33e537a8537452.png)

(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.

---

<div class="post-metadata">

**Author:** ![CrazyMage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrazyMage](https://forums.unrealengine.com/u/CrazyMage)\
**Post date:** [October 12, 2023, 4:49am UTC](https://forums.unrealengine.com/t/how-to-use-console-command-that-takes-struct-as-parameter/1329861/2 "2023-10-12T04:49:27Z")

</div>

what about this: [Passing vector as parameter to console function - #4 by Zikoko](https://forums.unrealengine.com/t/passing-vector-as-parameter-to-console-function/423058/4)

---

<div class="post-metadata">

**Author:** ![dzemzmcdonalda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dzemzmcdonalda/32/1214680_2.png) [@dzemzmcdonalda](https://forums.unrealengine.com/u/dzemzmcdonalda)\
**Post date:** [October 12, 2023, 10:37am UTC](https://forums.unrealengine.com/t/how-to-use-console-command-that-takes-struct-as-parameter/1329861/3 "2023-10-12T10:37:26Z")

</div>

Thanks @CrazyMage

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

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

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 11, 2023, 10:38am UTC](https://forums.unrealengine.com/t/how-to-use-console-command-that-takes-struct-as-parameter/1329861/4 "2023-11-11T10:38:14Z")

</div>

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