# Controlling an actors position given coordinates and time in a csv

**URL:** <https://forums.unrealengine.com/t/controlling-an-actors-position-given-coordinates-and-time-in-a-csv/95294>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 27, 2017, 10:30pm UTC](https://forums.unrealengine.com/t/controlling-an-actors-position-given-coordinates-and-time-in-a-csv/95294 "2017-06-27T22:30:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrotan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@astrotan](https://forums.unrealengine.com/u/astrotan)\
**Post date:** [June 27, 2017, 10:30pm UTC](https://forums.unrealengine.com/t/controlling-an-actors-position-given-coordinates-and-time-in-a-csv/95294/1 "2017-06-27T22:30:21Z")

</div>

Hi,

What would be the best way to go about controlling an actors position in the game using a .csv?

It will look like

```php

t, x, y, z
0, 0, 0, 20
.5, 1, .5, 25
1, 2, .5, 30
1.5, 3, .5, 35
etc....

```

What would be the best way to update the actors location given the time intervals in the file since calling the Tick function would update it too frequently? Also in the second link, the user shows how to parse the data but for a set number of rows and columns which is something I’d like to stay away from since my data sets will be dynamic (as in more variables may get added later on and I don’t want to constantly hard code new ones). Any thoughts? I’ve listed the tutorials that I’ve looked at below

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

[http://www.cplusplus.com/forum/general/17771/](http://www.cplusplus.com/forum/general/17771/)
