# How to change a specific index in array?

**URL:** <https://forums.unrealengine.com/t/how-to-change-a-specific-index-in-array/372978>\
**Category:** Blueprint\
**Tags:** how-to, how-do-i, unreal-engine, editor, UE4, question, Blueprint\
**Created:** [October 10, 2016, 6:29pm UTC](https://forums.unrealengine.com/t/how-to-change-a-specific-index-in-array/372978 "2016-10-10T18:29:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![678GUY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@678GUY](https://forums.unrealengine.com/u/678GUY)\
**Post date:** [October 10, 2016, 6:29pm UTC](https://forums.unrealengine.com/t/how-to-change-a-specific-index-in-array/372978/1 "2016-10-10T18:29:20Z")

</div>

i have an array of booleans i want to change a specific index in array is this possible? if yes plz tell me

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 10, 2016, 6:43pm UTC](https://forums.unrealengine.com/t/how-to-change-a-specific-index-in-array/372978/2 "2016-10-10T18:43:40Z")

</div>

Hey 678GUY-

You can use the Set Array Elem node to set the value of an array element at the array index specified on the node.

Cheers

---

<div class="post-metadata">

**Author:** ![Swinny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swinny](https://forums.unrealengine.com/u/Swinny)\
**Post date:** [September 7, 2017, 9:29am UTC](https://forums.unrealengine.com/t/how-to-change-a-specific-index-in-array/372978/3 "2017-09-07T09:29:31Z")

</div>

thanks !

---

<div class="post-metadata">

**Author:** ![DakotaEns](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DakotaEns](https://forums.unrealengine.com/u/DakotaEns)\
**Post date:** [July 14, 2018, 4:32am UTC](https://forums.unrealengine.com/t/how-to-change-a-specific-index-in-array/372978/4 "2018-07-14T04:32:25Z")

</div>

not exactly the same topic but here is a question i cant figure out. i have bullets in a clip. each have a different value for effecting damage weight accuracy and range. But when i pick up the clip i want it to have a total weight using the values inside the array. with out using one weight and multiplying by the index.  
(0) damage=.3 weight =.04 recoil effect=.21 range= 1.6  
(1) damage=.4 weight =.05 recoil effect=.35 range=2.1  
(2) damage=.35 weight= .44 recoil effect=.28 range 1.8

the clip has its own weight variable that would be added to this as well. which we could just say is .85 units  
so “total weight” =.04+.05+.44+.85 how do i do this using and array?

---

<div class="post-metadata">

**Author:** ![DakotaEns](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DakotaEns](https://forums.unrealengine.com/u/DakotaEns)\
**Post date:** [July 14, 2018, 4:32am UTC](https://forums.unrealengine.com/t/how-to-change-a-specific-index-in-array/372978/5 "2018-07-14T04:32:59Z")

</div>

not exactly the same topic but here is a question i cant figure out. i have bullets in a clip. each have a different value for effecting damage weight accuracy and range. But when i pick up the clip i want it to have a total weight using the values inside the array. with out using one weight and multiplying by the index.  
(0) damage=.3 weight =.04 recoil effect=.21 range= 1.6  
(1) damage=.4 weight =.05 recoil effect=.35 range=2.1  
(2) damage=.35 weight= .44 recoil effect=.28 range 1.8

the clip has its own weight variable that would be added to this as well. which we could just say is .85 units  
so “total weight” =.04+.05+.44+.85 how do i do this using and array?
