# Niagara "Map For" Can't Set Array Elements

**URL:** <https://forums.unrealengine.com/t/niagara-map-for-cant-set-array-elements/769879>\
**Category:** FX\
**Tags:** UE-5, unreal-engine, question\
**Created:** [February 13, 2023, 3:11pm UTC](https://forums.unrealengine.com/t/niagara-map-for-cant-set-array-elements/769879 "2023-02-13T15:11:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Michael.Galetzka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michael.galetzka/32/924122_2.png) [@Michael.Galetzka](https://forums.unrealengine.com/u/Michael.Galetzka)\
**Post date:** [February 14, 2023, 3:13pm UTC](https://forums.unrealengine.com/t/niagara-map-for-cant-set-array-elements/769879/2 "2023-02-14T15:13:25Z")

</div>

Hey, couple of things:

1. You just have to connect the set array call to the map for node, e.g. by setting a dummy value (see below)
2. You don’t have to calculate the current interation yourself, there is a node for it already
3. You can always just pop down a custom hlsl node and write the for loop yourself. You can get the hlsl version of the data interface functions by right-clicking on the data interface pin and then go to “Data Interface Function HLSL…”

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/b/e8b7bfa8a0496a7791d7c2496c70bd70e091abca.png)

---

_[View the full topic](https://forums.unrealengine.com/t/niagara-map-for-cant-set-array-elements/769879)._
