# Editor Scripting

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

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

**Page:** 85

---

## [Restart level but not reset a variable?](https://forums.unrealengine.com/t/restart-level-but-not-reset-a-variable/315724)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_86d41c48](https://forums.unrealengine.com/u/anonymous_user_86d41c48)\
**Replies:** 8\
**Last updated:** [January 17, 2017, 3:40pm UTC](https://forums.unrealengine.com/t/restart-level-but-not-reset-a-variable/315724 "2017-01-17T15:40:22Z")

</div>

Hello, So I have a little script that when the player dies the world resets, and spawns the player at a certain location. I have a checkpoint system which sets this certain location, but when the level restarts it set …

---

## [Object collisioning Trigger Box](https://forums.unrealengine.com/t/object-collisioning-trigger-box/381650)

<div class="topic-metadata">

**Author:** [@Mempsis](https://forums.unrealengine.com/u/Mempsis)\
**Replies:** 2\
**Last updated:** [January 13, 2017, 6:58am UTC](https://forums.unrealengine.com/t/object-collisioning-trigger-box/381650 "2017-01-13T06:58:05Z")

</div>

I’ve faced another problem. I want to make my spotlight objects to spawn into another level, but only if they are placed inside a Trigger box. I have a BP for the spotlight, where I am checking the condition of InTheMap?…

---

## [How to get a variable from actor in a list of objects?](https://forums.unrealengine.com/t/how-to-get-a-variable-from-actor-in-a-list-of-objects/380446)

<div class="topic-metadata">

**Author:** [@Isrraka](https://forums.unrealengine.com/u/Isrraka)\
**Replies:** 11\
**Last updated:** [January 12, 2017, 10:03am UTC](https://forums.unrealengine.com/t/how-to-get-a-variable-from-actor-in-a-list-of-objects/380446 "2017-01-12T10:03:43Z")

</div>

Hi, I have an actor with a list of actors as a variable. All the listed actors inherit from the same class with 2 variables (Name, texture). As I understand, I can’t use the “actor” type for the list if I want to edit …

---

## [Editor crashes when saving a SaveGame with Event Dispatcher](https://forums.unrealengine.com/t/editor-crashes-when-saving-a-savegame-with-event-dispatcher/381513)

<div class="topic-metadata">

**Author:** [@user37337](https://forums.unrealengine.com/u/user37337)\
**Replies:** 1\
**Last updated:** [January 11, 2017, 3:52pm UTC](https://forums.unrealengine.com/t/editor-crashes-when-saving-a-savegame-with-event-dispatcher/381513 "2017-01-11T15:52:16Z")

</div>

After upgrading our project from 4.13.2. to 4.14.2 I got a crash when saving the game. My Blueprint SaveGame object contains an event dispatcher and the game tries to serialize the objects that are registered with this d…

---

## [Bug in save load system.](https://forums.unrealengine.com/t/bug-in-save-load-system/381140)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_baa279fa](https://forums.unrealengine.com/u/anonymous_user_baa279fa)\
**Replies:** 4\
**Last updated:** [January 10, 2017, 5:22am UTC](https://forums.unrealengine.com/t/bug-in-save-load-system/381140 "2017-01-10T05:22:54Z")

</div>

I find bug in save load system. I had creare varibel in class: UPROPERTY(EditAnywhere, BlueprintReadWrite, SaveGame) int32 Par; In class constructor I set value 5. In editor In property I set value 0. If in game i s…

---

## [SaveGame ignores properties set to class defaults](https://forums.unrealengine.com/t/savegame-ignores-properties-set-to-class-defaults/364946)

<div class="topic-metadata">

**Author:** [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Replies:** 6\
**Last updated:** [January 10, 2017, 1:24am UTC](https://forums.unrealengine.com/t/savegame-ignores-properties-set-to-class-defaults/364946 "2017-01-10T01:24:50Z")

</div>

When serializing properties, class default values are not saved. This is fine when actors are spawned from the class, but if the actor already exists in the scene and the level designer sets the value to a non-class defa…

---

## [How to create a Structure in a separate file](https://forums.unrealengine.com/t/how-to-create-a-structure-in-a-separate-file/297218)

<div class="topic-metadata">

**Author:** [@envenger](https://forums.unrealengine.com/u/envenger)\
**Replies:** 5\
**Last updated:** [January 4, 2017, 9:08pm UTC](https://forums.unrealengine.com/t/how-to-create-a-structure-in-a-separate-file/297218 "2017-01-04T21:08:17Z")

</div>

Hi, I generally make USTRUCT above the class to which they generally related to. But my current structure contains a a lot of smaller structures and I want to place the structure in a separate file. How to I create a sep…

---

## [Save Whole Actor Data](https://forums.unrealengine.com/t/save-whole-actor-data/380888)

<div class="topic-metadata">

**Author:** [@Yoroie](https://forums.unrealengine.com/u/Yoroie)\
**Replies:** 1\
**Last updated:** [January 4, 2017, 5:46pm UTC](https://forums.unrealengine.com/t/save-whole-actor-data/380888 "2017-01-04T17:46:49Z")

</div>

Hi I have a question Is there a way to save all Variables from a Actor. And load them after the game is Restart? Without which I have to enter all the single? Maybe with Get all actor with Interface (SaveData) And t…

---

## [How to get a controller reference as a client?](https://forums.unrealengine.com/t/how-to-get-a-controller-reference-as-a-client/380211)

<div class="topic-metadata">

**Author:** [@UDKAP](https://forums.unrealengine.com/u/UDKAP)\
**Replies:** 4\
**Last updated:** [January 2, 2017, 8:31am UTC](https://forums.unrealengine.com/t/how-to-get-a-controller-reference-as-a-client/380211 "2017-01-02T08:31:32Z")

</div>

Hi, I want to make a multiplahyer game where the players can order around some pawns on the map. My problem is that the players (clients) can’t get a reference of the pawn controllers, because they exist only on the ser…

---

## [Inventory equip and unequip problem](https://forums.unrealengine.com/t/inventory-equip-and-unequip-problem/380373)

<div class="topic-metadata">

**Author:** [@the\_tubby1](https://forums.unrealengine.com/u/the_tubby1)\
**Replies:** 11\
**Last updated:** [December 30, 2016, 4:30pm UTC](https://forums.unrealengine.com/t/inventory-equip-and-unequip-problem/380373 "2016-12-30T16:30:11Z")

</div>

Hello there. I’m at my wits end with my equipping/unequipping system in Unreal. I’m fairly new to UE4 in terms of actually making progress on a project but I have a basic grasp on most things. The problem I am having is …

---

## [How can i Access Blueprint child public function](https://forums.unrealengine.com/t/how-can-i-access-blueprint-child-public-function/380488)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_913cadfa](https://forums.unrealengine.com/u/anonymous_user_913cadfa)\
**Replies:** 0\
**Last updated:** [December 30, 2016, 11:01am UTC](https://forums.unrealengine.com/t/how-can-i-access-blueprint-child-public-function/380488 "2016-12-30T11:01:53Z")

</div>

I have a blueprint called Metal\_Wheel. It’s obvious a wheel, that rotates at some AngularSpeed ( atribute or variable of the blueprint). Then i have a Truck, which has 4 aligned wheels. Truck has a variable called Linea…

---

## [Create, save, load and remove ini files](https://forums.unrealengine.com/t/create-save-load-and-remove-ini-files/380297)

<div class="topic-metadata">

**Author:** [@MrAlicard](https://forums.unrealengine.com/u/MrAlicard)\
**Replies:** 3\
**Last updated:** [December 29, 2016, 3:17pm UTC](https://forums.unrealengine.com/t/create-save-load-and-remove-ini-files/380297 "2016-12-29T15:17:19Z")

</div>

Hello I want save and/or load and/or remove values from an ini file. For example I have somthing.ini file and in this file has section \[General\] and keys Username, Password, Character, Website, ActiveModules. Would lo…

---

## [Binding blueprint elements to variables and use the blueprint in another blueprint?](https://forums.unrealengine.com/t/binding-blueprint-elements-to-variables-and-use-the-blueprint-in-another-blueprint/380394)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d4d129f0](https://forums.unrealengine.com/u/anonymous_user_d4d129f0)\
**Replies:** 4\
**Last updated:** [December 28, 2016, 10:52pm UTC](https://forums.unrealengine.com/t/binding-blueprint-elements-to-variables-and-use-the-blueprint-in-another-blueprint/380394 "2016-12-28T22:52:48Z")

</div>

Say I have a list of items and I want to display this list of items, but don’t want to map everything in the array to a blueprint element individually. Is there a possibility of making a blueprint design of one item and…

---

## [Anyway to save Game Time Since Creation and set this to Game State later?](https://forums.unrealengine.com/t/anyway-to-save-game-time-since-creation-and-set-this-to-game-state-later/380280)

<div class="topic-metadata">

**Author:** [@Klateralus](https://forums.unrealengine.com/u/Klateralus)\
**Replies:** 2\
**Last updated:** [December 27, 2016, 6:10pm UTC](https://forums.unrealengine.com/t/anyway-to-save-game-time-since-creation-and-set-this-to-game-state-later/380280 "2016-12-27T18:10:41Z")

</div>

Hello, UE4 Community! Every blueprint actor in unreal enging has Game Time Since Creation value and I can get and store it as float variable in SaveGame object, but is there a way to set new Game Time Since Creation for…

---

## [Global variable ?](https://forums.unrealengine.com/t/global-variable/379574)

<div class="topic-metadata">

**Author:** [@vipulul](https://forums.unrealengine.com/u/vipulul)\
**Replies:** 9\
**Last updated:** [December 24, 2016, 1:28am UTC](https://forums.unrealengine.com/t/global-variable/379574 "2016-12-24T01:28:55Z")

</div>

Hello, I want to make a variable that is accesible from my hud(ex: event actor begin overlap=\>change variable to true, and then use the variable in MyCharacterBp,another example button pressed from hud=\>variable true, d…

---

## [How can I persist the current state of my map in Unreal](https://forums.unrealengine.com/t/how-can-i-persist-the-current-state-of-my-map-in-unreal/379992)

<div class="topic-metadata">

**Author:** [@himanshu810e](https://forums.unrealengine.com/u/himanshu810e)\
**Replies:** 1\
**Last updated:** [December 22, 2016, 1:59pm UTC](https://forums.unrealengine.com/t/how-can-i-persist-the-current-state-of-my-map-in-unreal/379992 "2016-12-22T13:59:28Z")

</div>

I am struggling with persisting the level data as I try to save the game. As it seems that I am only able to save the data which I have created in my SaveGame class. My level have some destructible objects and I do not …

---

## [Reference Variable not working](https://forums.unrealengine.com/t/reference-variable-not-working/379934)

<div class="topic-metadata">

**Author:** [@Koaku](https://forums.unrealengine.com/u/Koaku)\
**Replies:** 10\
**Last updated:** [December 22, 2016, 12:29pm UTC](https://forums.unrealengine.com/t/reference-variable-not-working/379934 "2016-12-22T12:29:18Z")

</div>

Okay so I am trying to get and compare 2 values one is on a different actor blueprint so i am using a Reference So that is getting my other blueprint and getting the Var I need, but i get these errors And this is…

---

## [Getting reference to procedural mesh component](https://forums.unrealengine.com/t/getting-reference-to-procedural-mesh-component/378957)

<div class="topic-metadata">

**Author:** [@Blastertoad](https://forums.unrealengine.com/u/Blastertoad)\
**Replies:** 7\
**Last updated:** [December 19, 2016, 8:54pm UTC](https://forums.unrealengine.com/t/getting-reference-to-procedural-mesh-component/378957 "2016-12-19T20:54:10Z")

</div>

I have been running into major issues with getting or comparing references to procedural meshes. What I have set up is a modular armor system. Each armor piece is a static mesh with a procedural mesh component child. Whe…

---

## [Unable to initialize a structure in the blueprint!](https://forums.unrealengine.com/t/unable-to-initialize-a-structure-in-the-blueprint/379618)

<div class="topic-metadata">

**Author:** [@NODARYN](https://forums.unrealengine.com/u/NODARYN)\
**Replies:** 1\
**Last updated:** [December 18, 2016, 5:26pm UTC](https://forums.unrealengine.com/t/unable-to-initialize-a-structure-in-the-blueprint/379618 "2016-12-18T17:26:39Z")

</div>

Hey. I have a problem. I am creating a structure in C ++, exponent create an instance of an array structure in my class to initialize it to the blueprint, but when I try to add any actor in my structure - it is not added…

---

## [How to create xml nodes in a file.](https://forums.unrealengine.com/t/how-to-create-xml-nodes-in-a-file/379297)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d9ba6e93](https://forums.unrealengine.com/u/anonymous_user_d9ba6e93)\
**Replies:** 4\
**Last updated:** [December 18, 2016, 6:17am UTC](https://forums.unrealengine.com/t/how-to-create-xml-nodes-in-a-file/379297 "2016-12-18T06:17:35Z")

</div>

I’ve done a lot of research on this, and as far as I can tell, there’s only two ways to do it: Create the ENTIRE file manually in the form of a FString buffer. Using const\_cast to remove the const from a pointer. Opti…

---

## [Array inside SaveGame class resets after closing game](https://forums.unrealengine.com/t/array-inside-savegame-class-resets-after-closing-game/379561)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_176039ed](https://forums.unrealengine.com/u/anonymous_user_176039ed)\
**Replies:** 0\
**Last updated:** [December 17, 2016, 4:09pm UTC](https://forums.unrealengine.com/t/array-inside-savegame-class-resets-after-closing-game/379561 "2016-12-17T16:09:05Z")

</div>

I need to store character progress inside a custom SaveGame class, which includes the progress in a talent tree stored as an array of ints where the level of each talent is stored. I can load and save that progress perfe…

---

## [Persisting world map for a multiplayer game](https://forums.unrealengine.com/t/persisting-world-map-for-a-multiplayer-game/378312)

<div class="topic-metadata">

**Author:** [@Daniel\_K](https://forums.unrealengine.com/u/Daniel_K)\
**Replies:** 2\
**Last updated:** [December 15, 2016, 11:11pm UTC](https://forums.unrealengine.com/t/persisting-world-map-for-a-multiplayer-game/378312 "2016-12-15T23:11:53Z")

</div>

There will be some initial map built by us. Player are able to modify this map, eg. dig out tunnels, place down items and similar actions. Whole game will be backed by dedicated server running for a very long time. My m…

---

## [Blueprint struct array only returning first element (\[0\]) while other get nulled. As if it wasn't even an array.](https://forums.unrealengine.com/t/blueprint-struct-array-only-returning-first-element-0-while-other-get-nulled-as-if-it-wasnt-even-an-array/378936)

<div class="topic-metadata">

**Author:** [@ArxMods](https://forums.unrealengine.com/u/ArxMods)\
**Replies:** 3\
**Last updated:** [December 14, 2016, 8:42pm UTC](https://forums.unrealengine.com/t/blueprint-struct-array-only-returning-first-element-0-while-other-get-nulled-as-if-it-wasnt-even-an-array/378936 "2016-12-14T20:42:42Z")

</div>

When creating a struct array in blueprints and setting elements in the values, the values other then element 0 will be deleted. The engine will act like the datatype isn’t even an array. Simple test shown below. Index \[0…

---

## [Structure variable resetting after new startup](https://forums.unrealengine.com/t/structure-variable-resetting-after-new-startup/379143)

<div class="topic-metadata">

**Author:** [@Freestyledork](https://forums.unrealengine.com/u/Freestyledork)\
**Replies:** 1\
**Last updated:** [December 13, 2016, 6:52am UTC](https://forums.unrealengine.com/t/structure-variable-resetting-after-new-startup/379143 "2016-12-13T06:52:21Z")

</div>

I am having an issue were I try to load a structure variable into an array on construction. Everything works fine when I initially set the variable from a structure BP. When I close the program and reopen the variable lo…

---

## [Save Game Problem (Always Fail)](https://forums.unrealengine.com/t/save-game-problem-always-fail/378953)

<div class="topic-metadata">

**Author:** [@Annunaki69](https://forums.unrealengine.com/u/Annunaki69)\
**Replies:** 0\
**Last updated:** [December 11, 2016, 7:45am UTC](https://forums.unrealengine.com/t/save-game-problem-always-fail/378953 "2016-12-11T07:45:57Z")

</div>

Hi guys, The problem I have is that whenever try to save the game it fails. I have set one up in another project and the same happens so I’m pretty sure its just me missing something or its something hat may have chan…

---

## [How do I send input from the level blueprint to a variable of another blueprint?](https://forums.unrealengine.com/t/how-do-i-send-input-from-the-level-blueprint-to-a-variable-of-another-blueprint/378419)

<div class="topic-metadata">

**Author:** [@Menelin](https://forums.unrealengine.com/u/Menelin)\
**Replies:** 8\
**Last updated:** [December 7, 2016, 5:13pm UTC](https://forums.unrealengine.com/t/how-do-i-send-input-from-the-level-blueprint-to-a-variable-of-another-blueprint/378419 "2016-12-07T17:13:51Z")

</div>

I’m trying to change the height of a group of platforms change after the player enters the room. I’ve made the height variable for the platforms a public variable. I’ve been able to make the platforms change height suc…

---

## [How do I remove items from an array efficiently?](https://forums.unrealengine.com/t/how-do-i-remove-items-from-an-array-efficiently/378523)

<div class="topic-metadata">

**Author:** [@VagrantProfile](https://forums.unrealengine.com/u/VagrantProfile)\
**Replies:** 1\
**Last updated:** [December 6, 2016, 8:23pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-items-from-an-array-efficiently/378523 "2016-12-06T20:23:23Z")

</div>

Hey Guys, So I’m currently making a Pac-Man game in UE4. I want to make it, so that my level is over when Pac-Man collects all of the pellets I’ve placed around the level. I’ve created a Pellet Blueprint and have plac…

---

## [What to do to access variables/functions in other C++ class](https://forums.unrealengine.com/t/what-to-do-to-access-variables-functions-in-other-c-class/378496)

<div class="topic-metadata">

**Author:** [@Tomza](https://forums.unrealengine.com/u/Tomza)\
**Replies:** 2\
**Last updated:** [December 6, 2016, 6:24pm UTC](https://forums.unrealengine.com/t/what-to-do-to-access-variables-functions-in-other-c-class/378496 "2016-12-06T18:24:54Z")

</div>

Hello, I have two classes: HelicopterTrigger and HelicopterSpawner. Both inherit from AActor. I don’t know how to set a bool variable IsShouldSpawn from HelicopterTrigger to HelicopterSpawner to spawn an object. In Hel…

---

## [Child actor component crashing the editor.](https://forums.unrealengine.com/t/child-actor-component-crashing-the-editor/378361)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a0f9f0591](https://forums.unrealengine.com/u/anonymous_user_a0f9f0591)\
**Replies:** 1\
**Last updated:** [December 5, 2016, 4:21pm UTC](https://forums.unrealengine.com/t/child-actor-component-crashing-the-editor/378361 "2016-12-05T16:21:31Z")

</div>

Create two actor blueprints (ActorA, ActorB) Add a child actor component to ActorA. Set the child actor class to ActorB. Add a variable to ActorB of type ActorA. Compile, save, and restart the editor. Attempt to open ei…

---

## [Does GetComponentsByClass return an array that is in the same order every time across game sessions?](https://forums.unrealengine.com/t/does-getcomponentsbyclass-return-an-array-that-is-in-the-same-order-every-time-across-game-sessions/378267)

<div class="topic-metadata">

**Author:** [@nischtz](https://forums.unrealengine.com/u/nischtz)\
**Replies:** 1\
**Last updated:** [December 5, 2016, 11:02am UTC](https://forums.unrealengine.com/t/does-getcomponentsbyclass-return-an-array-that-is-in-the-same-order-every-time-across-game-sessions/378267 "2016-12-05T11:02:47Z")

</div>

I created a Blueprint Actor Component (BPC\_Dialog) that holds a dialog and an Actor Blueprint (BP\_DialogProvider) which uses the GetComponentsByClass node to cache an array of all BPC\_Dialogs added to its owner to later …

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

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