# Traffic Object start position in mini maneuver commands

**URL:** <https://forums.ipg-automotive.com/t/traffic-object-start-position-in-mini-maneuver-commands/1146>\
**Category:** Uncategorized\
**Created:** [8 October 2024 11:13 UTC](https://forums.ipg-automotive.com/t/traffic-object-start-position-in-mini-maneuver-commands/1146 "2024-10-08T11:13:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chintan](https://forums.ipg-automotive.com/letter_avatar_proxy/v4/letter/c/a3d4f5/32.png) [@Chintan](https://forums.ipg-automotive.com/u/Chintan)\
**Post date:** [8 October 2024 11:13 UTC](https://forums.ipg-automotive.com/t/traffic-object-start-position-in-mini-maneuver-commands/1146/1 "2024-10-08T11:13:26Z")

</div>

Hi  
Is there some way to read the traffic object start position " t " in mini maneuver commands ?  
 ![image](https://forums.ipg-automotive.com/uploads/default/original/1X/b6cb18e3cf19f5b86c3ff90af1a9823c87f58e74.png)

---

<div class="post-metadata">

**Author:** ![bogomil.shtarkalev](https://forums.ipg-automotive.com/letter_avatar_proxy/v4/letter/b/8dc957/32.png) [@bogomil.shtarkalev](https://forums.ipg-automotive.com/u/bogomil.shtarkalev)\
**Post date:** [10 October 2024 09:53 UTC](https://forums.ipg-automotive.com/t/traffic-object-start-position-in-mini-maneuver-commands/1146/2 "2024-10-10T09:53:44Z")

</div>

Hello,

You cannot use ScriptControl directly in the mini maneuver . I would recommend loading a script at startup, using IFileRead to read the correct starting position value, and storing it as a named variable.

I have written an example script with only one line:  
`NamedValue set trafficPos [lindex [IFileRead TestRun Traffic.0.StartPos] 1]`

This creates a named value trafficPos that you can read later. This focuses on traffic object 0, if you want another specific one, you have to adapt the script or make it more complicated to make it adaptive.

Then you can use $trafficPos in the maneuver commands:

 ![image](https://forums.ipg-automotive.com/uploads/default/original/1X/f9e6185e7ac1cd334ad9e6276081c7dabae2f48b.png)
