# Editor Scripting

**URL:** https://forums.unrealengine.com/c/development-discussion/pipeline-plugins/editor-scripting/45.md?page=86

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

**Page:** 87

---

## [Variables get zeroed out in child blueprints](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846)

<div class="topic-metadata">

**Author:** [@Matt\_Hancy](https://forums.unrealengine.com/u/Matt_Hancy)\
**Replies:** 12\
**Last updated:** [October 27, 2016, 1:13pm UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846 "2016-10-27T13:13:26Z")

</div>

I have a parent blueprint that I created a float variable in (set the value to 50), then set that variable to be editable and made a child blueprint. I edited that variable on the child to be (30) and everything worked …

---

## [Blueprint Corruptions related to Arrays in Save Games](https://forums.unrealengine.com/t/blueprint-corruptions-related-to-arrays-in-save-games/374608)

<div class="topic-metadata">

**Author:** [@BPANDREW](https://forums.unrealengine.com/u/BPANDREW)\
**Replies:** 0\
**Last updated:** [October 27, 2016, 10:15am UTC](https://forums.unrealengine.com/t/blueprint-corruptions-related-to-arrays-in-save-games/374608 "2016-10-27T10:15:49Z")

</div>

I have these random issues where I’ll load my project up and I’ll find various blueprints unwired with warnings. Because they are arrays the blueprints can’t run with them unwired. So I’ll rewire them save and close th…

---

## [Delete spawned actor from Array...](https://forums.unrealengine.com/t/delete-spawned-actor-from-array/374381)

<div class="topic-metadata">

**Author:** [@GudeAndi](https://forums.unrealengine.com/u/GudeAndi)\
**Replies:** 2\
**Last updated:** [October 27, 2016, 9:30am UTC](https://forums.unrealengine.com/t/delete-spawned-actor-from-array/374381 "2016-10-27T09:30:54Z")

</div>

Hi, i try to explain my problem. :slight\_smile: I have an Backpack (Actor) with an simple array. I can put things(other Actors) in the Inventory (Actor Array). Everytime i spawn the Backpack Actor, all Actors from the …

---

## [Is it possible to use the Array "Contains" with a single conditional?](https://forums.unrealengine.com/t/is-it-possible-to-use-the-array-contains-with-a-single-conditional/374006)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_650f1d25](https://forums.unrealengine.com/u/anonymous_user_650f1d25)\
**Replies:** 6\
**Last updated:** [October 26, 2016, 5:44am UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-the-array-contains-with-a-single-conditional/374006 "2016-10-26T05:44:02Z")

</div>

I wanted to know if a specific integer array contains any value other than 0. By default all items of the array in question are 0. During gameplay any of them could go up to 1 ~ 999. Would it be possible to stick somet…

---

## [Probably bug: Cant load class from savegame if it is not referenced anywhere else](https://forums.unrealengine.com/t/probably-bug-cant-load-class-from-savegame-if-it-is-not-referenced-anywhere-else/374148)

<div class="topic-metadata">

**Author:** [@UE4Hobbyist](https://forums.unrealengine.com/u/UE4Hobbyist)\
**Replies:** 11\
**Last updated:** [October 25, 2016, 6:03pm UTC](https://forums.unrealengine.com/t/probably-bug-cant-load-class-from-savegame-if-it-is-not-referenced-anywhere-else/374148 "2016-10-25T18:03:31Z")

</div>

The above example returns nothing as display name unless I add a class variable of the same type in a blueprint anywhere in the map or there is an instance of the class spawned. Every other non class variable works no…

---

## [Help with Interpolation Problem?](https://forums.unrealengine.com/t/help-with-interpolation-problem/373730)

<div class="topic-metadata">

**Author:** [@anon39275455](https://forums.unrealengine.com/u/anon39275455)\
**Replies:** 7\
**Last updated:** [October 24, 2016, 7:06pm UTC](https://forums.unrealengine.com/t/help-with-interpolation-problem/373730 "2016-10-24T19:06:17Z")

</div>

When I move my AimOffset, the camera rotates. I will then press WASD to try and move F, L, B or R. My character will INSTANTLY turn and then start the move animation. Also the beginning of the video is showing the Aim…

---

## [Vertex texture sampling?](https://forums.unrealengine.com/t/vertex-texture-sampling/338037)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_eeef1b0c1](https://forums.unrealengine.com/u/anonymous_user_eeef1b0c1)\
**Replies:** 6\
**Last updated:** [October 24, 2016, 11:40am UTC](https://forums.unrealengine.com/t/vertex-texture-sampling/338037 "2016-10-24T11:40:38Z")

</div>

We have a problem that we can’t seem to figure out (and are having trouble working around due to lacking or simply no documentation on the subject when it comes to the build in custom node (HLSL) or creating custom C++/U…

---

## [how to  break reference in reference viewer](https://forums.unrealengine.com/t/how-to-break-reference-in-reference-viewer/374285)

<div class="topic-metadata">

**Author:** [@VincentJun](https://forums.unrealengine.com/u/VincentJun)\
**Replies:** 0\
**Last updated:** [October 24, 2016, 11:22am UTC](https://forums.unrealengine.com/t/how-to-break-reference-in-reference-viewer/374285 "2016-10-24T11:22:32Z")

</div>

hello everyone, i want to break reference in reference viewer,but i try to do,end of i fail ,due to many level lead to crash,so i want break other reference!

---

## [Issue with SaveGame in GameInstance when switching levels](https://forums.unrealengine.com/t/issue-with-savegame-in-gameinstance-when-switching-levels/374169)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f2b47577](https://forums.unrealengine.com/u/anonymous_user_f2b47577)\
**Replies:** 1\
**Last updated:** [October 23, 2016, 5:34am UTC](https://forums.unrealengine.com/t/issue-with-savegame-in-gameinstance-when-switching-levels/374169 "2016-10-23T05:34:59Z")

</div>

Hi, I am having issues with SaveGame when it’s used in the GameInstance class. I used the tutorial here to save a player name: https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Code/ I create the save game in…

---

## [Where can I store boolean variables? (or a boolean array)](https://forums.unrealengine.com/t/where-can-i-store-boolean-variables-or-a-boolean-array/373866)

<div class="topic-metadata">

**Author:** [@c0ldpr0xy](https://forums.unrealengine.com/u/c0ldpr0xy)\
**Replies:** 13\
**Last updated:** [October 22, 2016, 7:04am UTC](https://forums.unrealengine.com/t/where-can-i-store-boolean-variables-or-a-boolean-array/373866 "2016-10-22T07:04:47Z")

</div>

For example, player states. I’ve tried using enum but it only allows 1 state of a variable and you need to make 2 different states. With enums, you can do it like: Player has power up / Player has not power up But that…

---

## [Can't reference to Blueprint based on my class](https://forums.unrealengine.com/t/cant-reference-to-blueprint-based-on-my-class/373712)

<div class="topic-metadata">

**Author:** [@TommieBommie](https://forums.unrealengine.com/u/TommieBommie)\
**Replies:** 7\
**Last updated:** [October 19, 2016, 2:08am UTC](https://forums.unrealengine.com/t/cant-reference-to-blueprint-based-on-my-class/373712 "2016-10-19T02:08:25Z")

</div>

Hello all, I made a WeaponBase class, and created a BP based on this class. The class has a property: “AProjectileType\* ProjectileType”. The property needs to be pointing to another BP based on my ProjectileBase class.…

---

## [Saving and Loading Multiple Games. HELP!](https://forums.unrealengine.com/t/saving-and-loading-multiple-games-help/373490)

<div class="topic-metadata">

**Author:** [@Weich14](https://forums.unrealengine.com/u/Weich14)\
**Replies:** 0\
**Last updated:** [October 16, 2016, 4:20pm UTC](https://forums.unrealengine.com/t/saving-and-loading-multiple-games-help/373490 "2016-10-16T16:20:23Z")

</div>

Hi everyone. So for a final year project we are designing a type of maze runner game. We are having some serious troubles with saving multiple games (having multiple players) so that a person can just type in their usern…

---

## [Inventory system referencing actors](https://forums.unrealengine.com/t/inventory-system-referencing-actors/373154)

<div class="topic-metadata">

**Author:** [@Deemk0](https://forums.unrealengine.com/u/Deemk0)\
**Replies:** 1\
**Last updated:** [October 13, 2016, 11:35am UTC](https://forums.unrealengine.com/t/inventory-system-referencing-actors/373154 "2016-10-13T11:35:45Z")

</div>

Good evening, I am trying to create inventory system. I decided to use staticMeshActor Blueprint for my purpose. My problem is next: I have a bp of an object i want to pick up. This bp should reference the staticMeshAc…

---

## [How to modify struct array inside struct? c++](https://forums.unrealengine.com/t/how-to-modify-struct-array-inside-struct-c/373157)

<div class="topic-metadata">

**Author:** [@limpit666](https://forums.unrealengine.com/u/limpit666)\
**Replies:** 0\
**Last updated:** [October 12, 2016, 6:30pm UTC](https://forums.unrealengine.com/t/how-to-modify-struct-array-inside-struct-c/373157 "2016-10-12T18:30:52Z")

</div>

Hi, I tried to post this as a thread in the forums but apparently it didn’t get through for some reason. I’ll try to keep it short. I am making a hex tile grid procedural generation. I use Instanced Static Mesh compone…

---

## [Setting a replicate variable on server.](https://forums.unrealengine.com/t/setting-a-replicate-variable-on-server/372122)

<div class="topic-metadata">

**Author:** [@TheMunky](https://forums.unrealengine.com/u/TheMunky)\
**Replies:** 2\
**Last updated:** [October 11, 2016, 12:44pm UTC](https://forums.unrealengine.com/t/setting-a-replicate-variable-on-server/372122 "2016-10-11T12:44:38Z")

</div>

Basically, as the title says, I’m trying to set a replicated variable on the server and access it from the client; I’m using VaRest to pull JSON information from an API, then through the GameMode(I want the api communic…

---

## [Client Players Jitter on Listen Server Host](https://forums.unrealengine.com/t/client-players-jitter-on-listen-server-host/367236)

<div class="topic-metadata">

**Author:** [@gooberCP](https://forums.unrealengine.com/u/gooberCP)\
**Replies:** 2\
**Last updated:** [October 8, 2016, 2:14pm UTC](https://forums.unrealengine.com/t/client-players-jitter-on-listen-server-host/367236 "2016-10-08T14:14:50Z")

</div>

Running UE4 12.5-3039270, build date Jul 6 2016 I’m having what appears to be the same issue as the two questions below: In the first linked thread above, I was asked to make a new question for my problem. Basically,…

---

## [Can't open project anymore](https://forums.unrealengine.com/t/cant-open-project-anymore/372163)

<div class="topic-metadata">

**Author:** [@train0fpain](https://forums.unrealengine.com/u/train0fpain)\
**Replies:** 9\
**Last updated:** [October 4, 2016, 2:46pm UTC](https://forums.unrealengine.com/t/cant-open-project-anymore/372163 "2016-10-04T14:46:26Z")

</div>

Yesterday I was working on my project. Today when I tried to open it it always shut down at 93% whitout opening a crash report. After searching in the internet i verified my Engine version and deleted the assets I suspec…

---

## [4.12 Add Blueprint variable in sequencer](https://forums.unrealengine.com/t/4-12-add-blueprint-variable-in-sequencer/360133)

<div class="topic-metadata">

**Author:** [@virtualHC](https://forums.unrealengine.com/u/virtualHC)\
**Replies:** 2\
**Last updated:** [October 3, 2016, 9:28pm UTC](https://forums.unrealengine.com/t/4-12-add-blueprint-variable-in-sequencer/360133 "2016-10-03T21:28:23Z")

</div>

How do I add a Blueprint variable track in the new Sequencer? I converted a preexisting Matinee to Sequencer and the process did produce tracks in the generated Sequencer with the variables and values for the Blueprint v…

---

## [Fix broken reference](https://forums.unrealengine.com/t/fix-broken-reference/371811)

<div class="topic-metadata">

**Author:** [@fallingbrickwork](https://forums.unrealengine.com/u/fallingbrickwork)\
**Replies:** 1\
**Last updated:** [September 30, 2016, 12:36pm UTC](https://forums.unrealengine.com/t/fix-broken-reference/371811 "2016-09-30T12:36:08Z")

</div>

Hi all, I had a C++ class that ended up not being needed. I closed VS and UE4 and deleted the .h & .cpp files and regenerated the project files (as per another similar Answers response). Everything compiles fine from a …

---

## [Cannot Add Values to Struct Blueprint](https://forums.unrealengine.com/t/cannot-add-values-to-struct-blueprint/371388)

<div class="topic-metadata">

**Author:** [@OpenStringStudio](https://forums.unrealengine.com/u/OpenStringStudio)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 1:39pm UTC](https://forums.unrealengine.com/t/cannot-add-values-to-struct-blueprint/371388 "2016-09-23T13:39:41Z")

</div>

Hello, I have created a Struct Blueprint containing five Transfrom Arrays. I’m using this Struct as an Array within my SaveGame Object (OutlineLibrary). But now I’m having trouble to actually add new values to the trans…

---

## [What are the limitations on the types of variables that can be handled by the Savegame system?](https://forums.unrealengine.com/t/what-are-the-limitations-on-the-types-of-variables-that-can-be-handled-by-the-savegame-system/371224)

<div class="topic-metadata">

**Author:** [@NickCaligo42](https://forums.unrealengine.com/u/NickCaligo42)\
**Replies:** 1\
**Last updated:** [September 22, 2016, 11:51am UTC](https://forums.unrealengine.com/t/what-are-the-limitations-on-the-types-of-variables-that-can-be-handled-by-the-savegame-system/371224 "2016-09-22T11:51:21Z")

</div>

What it says in the header. What kinds of variables can the savegame system handle? Is it limited only to primitive variable types (int, bool, etc.), or am I able to save structs as well?

---

## [create an inventory with a variable size in UMG and BPs](https://forums.unrealengine.com/t/create-an-inventory-with-a-variable-size-in-umg-and-bps/370858)

<div class="topic-metadata">

**Author:** [@David\_Oaken](https://forums.unrealengine.com/u/David_Oaken)\
**Replies:** 1\
**Last updated:** [September 18, 2016, 4:34pm UTC](https://forums.unrealengine.com/t/create-an-inventory-with-a-variable-size-in-umg-and-bps/370858 "2016-09-18T16:34:17Z")

</div>

Im attempting to create an inventory system in UE 4.13.0 which is akin to those you find in MMOs (but its for a single player RPG) where the player can get bags of varying sizes and place them into one of 5 slots. as the…

---

## [Using static mesh dinamicly from Inventory system](https://forums.unrealengine.com/t/using-static-mesh-dinamicly-from-inventory-system/370825)

<div class="topic-metadata">

**Author:** [@ztajti1992](https://forums.unrealengine.com/u/ztajti1992)\
**Replies:** 0\
**Last updated:** [September 17, 2016, 11:02pm UTC](https://forums.unrealengine.com/t/using-static-mesh-dinamicly-from-inventory-system/370825 "2016-09-17T23:02:26Z")

</div>

Hi all! I have very big problem. I creating a complex inventory system with weapons, clotches (bags, hats, jackets, etc.) and i can’t getting a mes in blueprint. Etc.: If i picked up a backpack, and have a “backPackSl…

---

## [problem loading from save file transform](https://forums.unrealengine.com/t/problem-loading-from-save-file-transform/370719)

<div class="topic-metadata">

**Author:** [@maxweaponage](https://forums.unrealengine.com/u/maxweaponage)\
**Replies:** 1\
**Last updated:** [September 17, 2016, 9:36am UTC](https://forums.unrealengine.com/t/problem-loading-from-save-file-transform/370719 "2016-09-17T09:36:30Z")

</div>

so i’m making a jrpg and i need the level to load where i left off after a battle, the only problem is that i always start back at the start point… my save bp isn’t working!! any advice?

---

## [Control one light with 2 switches](https://forums.unrealengine.com/t/control-one-light-with-2-switches/370308)

<div class="topic-metadata">

**Author:** [@NvyZen](https://forums.unrealengine.com/u/NvyZen)\
**Replies:** 6\
**Last updated:** [September 15, 2016, 12:29pm UTC](https://forums.unrealengine.com/t/control-one-light-with-2-switches/370308 "2016-09-15T12:29:57Z")

</div>

I have seen many answers on how to control one or more lights with a switch blueprint but how can I control one light with 2 switches? Imagine a hall light and you turn it on from downstairs then go to the top and turn i…

---

## [ue4 old savegame version crashes game (how to check its compatibility)](https://forums.unrealengine.com/t/ue4-old-savegame-version-crashes-game-how-to-check-its-compatibility/370188)

<div class="topic-metadata">

**Author:** [@Vejgaard](https://forums.unrealengine.com/u/Vejgaard)\
**Replies:** 3\
**Last updated:** [September 15, 2016, 9:47am UTC](https://forums.unrealengine.com/t/ue4-old-savegame-version-crashes-game-how-to-check-its-compatibility/370188 "2016-09-15T09:47:21Z")

</div>

Hi, We are currently having our game out to alpha tester who have played it some and therefore have an old savegame. I recently updated the structure of the savegame and when the game tries to load it a fatal crash occu…

---

## [How to keep track of enemy death](https://forums.unrealengine.com/t/how-to-keep-track-of-enemy-death/370105)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ba946294](https://forums.unrealengine.com/u/anonymous_user_ba946294)\
**Replies:** 1\
**Last updated:** [September 11, 2016, 4:13pm UTC](https://forums.unrealengine.com/t/how-to-keep-track-of-enemy-death/370105 "2016-09-11T16:13:55Z")

</div>

Hello, I am trying to set up a spawning wave system and in order do to that I would need to set up a system that keep track of the number of death of enemies. So far I have a system that work using integers and implemen…

---

## [Why do we need to Make outside variables local for a Lerp Translation to work properly](https://forums.unrealengine.com/t/why-do-we-need-to-make-outside-variables-local-for-a-lerp-translation-to-work-properly/369952)

<div class="topic-metadata">

**Author:** [@Jaysinsan](https://forums.unrealengine.com/u/Jaysinsan)\
**Replies:** 3\
**Last updated:** [September 9, 2016, 11:07pm UTC](https://forums.unrealengine.com/t/why-do-we-need-to-make-outside-variables-local-for-a-lerp-translation-to-work-properly/369952 "2016-09-09T23:07:39Z")

</div>

Hello all, So, I’ve just recently encountered an oddity when attempting to ‘Translate’ my Camera, made as a separate blue print actor, from one world location to another, via a Timeline and a Lerp node. My intention is…

---

## [Variable lost when not set to 'Editable' \[REPRO PROJECT\]](https://forums.unrealengine.com/t/variable-lost-when-not-set-to-editable-repro-project/369737)

<div class="topic-metadata">

**Author:** [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Replies:** 2\
**Last updated:** [September 8, 2016, 5:13pm UTC](https://forums.unrealengine.com/t/variable-lost-when-not-set-to-editable-repro-project/369737 "2016-09-08T17:13:08Z")

</div>

Please see this simple repro project, everything is explained in the starting scene: SIMPLE REPRO PROJECT Basically, in this example, variable is randomly set in construction script, and when ‘LOCK’ boolean is ON, it w…

---

## [How to count the number of actors in a scene, but filter them with a certain criteria?](https://forums.unrealengine.com/t/how-to-count-the-number-of-actors-in-a-scene-but-filter-them-with-a-certain-criteria/369734)

<div class="topic-metadata">

**Author:** [@Andras\_D\_Ormos](https://forums.unrealengine.com/u/Andras_D_Ormos)\
**Replies:** 2\
**Last updated:** [September 8, 2016, 3:26pm UTC](https://forums.unrealengine.com/t/how-to-count-the-number-of-actors-in-a-scene-but-filter-them-with-a-certain-criteria/369734 "2016-09-08T15:26:59Z")

</div>

For example I have 20 enemies on my map and they are all wearing differently colored hats. This color is stored in a variable in each of them. Now let’s say, I wanna count the number of enemies wearing red hats, how woul…

[Previous page](https://forums.unrealengine.com/c/development-discussion/pipeline-plugins/editor-scripting/45.md?page=85)

[Next page](https://forums.unrealengine.com/c/development-discussion/pipeline-plugins/editor-scripting/45.md?page=87)
