# Editor Scripting

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

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

**Page:** 84

---

## [Is there a way to prompt the player to select a previously saved game file from the saved game directory location manually?](https://forums.unrealengine.com/t/is-there-a-way-to-prompt-the-player-to-select-a-previously-saved-game-file-from-the-saved-game-directory-location-manually/387156)

<div class="topic-metadata">

**Author:** [@Uchiha\_Chris](https://forums.unrealengine.com/u/Uchiha_Chris)\
**Replies:** 2\
**Last updated:** [March 7, 2017, 11:55pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-prompt-the-player-to-select-a-previously-saved-game-file-from-the-saved-game-directory-location-manually/387156 "2017-03-07T23:55:51Z")

</div>

Hi, I’m relatively new to unreal engine and I was wondering if I could get some assistance with something. I’ve seen tutorials about saving and loading data into a level using the blueprint editor. What I’ve seen usually…

---

## [How can I get a variable that has been set in the same Blueprint but different event](https://forums.unrealengine.com/t/how-can-i-get-a-variable-that-has-been-set-in-the-same-blueprint-but-different-event/345281)

<div class="topic-metadata">

**Author:** [@WilbertOosterom](https://forums.unrealengine.com/u/WilbertOosterom)\
**Replies:** 10\
**Last updated:** [March 4, 2017, 8:41pm UTC](https://forums.unrealengine.com/t/how-can-i-get-a-variable-that-has-been-set-in-the-same-blueprint-but-different-event/345281 "2017-03-04T20:41:45Z")

</div>

I am setting a string during the EventBeginPlay that I want to get during an ActorOnClicked event. This is all within the same blueprint and I don’t understand why it would always return Null.

---

## [Saves with Persistent Characters Across Multiple Levels (Like an RPG)](https://forums.unrealengine.com/t/saves-with-persistent-characters-across-multiple-levels-like-an-rpg/379194)

<div class="topic-metadata">

**Author:** [@SerWind](https://forums.unrealengine.com/u/SerWind)\
**Replies:** 1\
**Last updated:** [March 3, 2017, 7:57pm UTC](https://forums.unrealengine.com/t/saves-with-persistent-characters-across-multiple-levels-like-an-rpg/379194 "2017-03-03T19:57:57Z")

</div>

I realize there is likely plenty of documentation on this very topic but I was having some trouble googling it/figuring out how to phrase the google itself. Essentially, any game basically has a save file that can persi…

---

## [After destroying an Actor, variable resets on all objects.](https://forums.unrealengine.com/t/after-destroying-an-actor-variable-resets-on-all-objects/386616)

<div class="topic-metadata">

**Author:** [@Artush](https://forums.unrealengine.com/u/Artush)\
**Replies:** 0\
**Last updated:** [March 1, 2017, 2:31pm UTC](https://forums.unrealengine.com/t/after-destroying-an-actor-variable-resets-on-all-objects/386616 "2017-03-01T14:31:43Z")

</div>

Hello, so i have this problem with my boolean variable, here is my blueprint for some simple item, where after player enters “sphere area” (onComponentBeginOverlap) i will set my boolean variable canCollect to true, aft…

---

## [How to add inventory to NPCs](https://forums.unrealengine.com/t/how-to-add-inventory-to-npcs/386495)

<div class="topic-metadata">

**Author:** [@relicta](https://forums.unrealengine.com/u/relicta)\
**Replies:** 0\
**Last updated:** [February 28, 2017, 3:09pm UTC](https://forums.unrealengine.com/t/how-to-add-inventory-to-npcs/386495 "2017-02-28T15:09:31Z")

</div>

Hi! I’m having some trouble trying to add an inventory to an NPC. My first person character has a working inventory system (Made using this tutorial: http://shootertutorial.com/2015/12/15/complete-skyrim-like-inventory-…

---

## [\[Crash\] Editor and PC freezes with invalid save file](https://forums.unrealengine.com/t/crash-editor-and-pc-freezes-with-invalid-save-file/386478)

<div class="topic-metadata">

**Author:** [@redbox](https://forums.unrealengine.com/u/redbox)\
**Replies:** 0\
**Last updated:** [February 28, 2017, 12:46pm UTC](https://forums.unrealengine.com/t/crash-editor-and-pc-freezes-with-invalid-save-file/386478 "2017-02-28T12:46:11Z")

</div>

Hello! I know this is edge case, but just a small report. I’m using simple save system with blueprints. In case I open save file with notepad++, change anything and save, my editor and also my PC freezes.

---

## [How to get the size of a separate blueprint actor still in the BP folder.](https://forums.unrealengine.com/t/how-to-get-the-size-of-a-separate-blueprint-actor-still-in-the-bp-folder/386120)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6f56e502](https://forums.unrealengine.com/u/anonymous_user_6f56e502)\
**Replies:** 1\
**Last updated:** [February 25, 2017, 10:52am UTC](https://forums.unrealengine.com/t/how-to-get-the-size-of-a-separate-blueprint-actor-still-in-the-bp-folder/386120 "2017-02-25T10:52:14Z")

</div>

So im trying to get actor bounds from an actor in another folder before its loaded into the game environment so i can properly space the spawns into columns. However when i reference my actor Block000 it returns value…

---

## [Save and Load game](https://forums.unrealengine.com/t/save-and-load-game/381645)

<div class="topic-metadata">

**Author:** [@hardgameras](https://forums.unrealengine.com/u/hardgameras)\
**Replies:** 1\
**Last updated:** [February 23, 2017, 8:53pm UTC](https://forums.unrealengine.com/t/save-and-load-game/381645 "2017-02-23T20:53:21Z")

</div>

Hello i am new to unreal engine 4 i was wondering if its possible to save a Game like in resident evil 4, and how am i supposed to do it ? :slight\_smile:

---

## [how would i make an interpolated raycast, to follow a weapon swing?](https://forums.unrealengine.com/t/how-would-i-make-an-interpolated-raycast-to-follow-a-weapon-swing/385009)

<div class="topic-metadata">

**Author:** [@Posh-Boy](https://forums.unrealengine.com/u/Posh-Boy)\
**Replies:** 9\
**Last updated:** [February 18, 2017, 12:25am UTC](https://forums.unrealengine.com/t/how-would-i-make-an-interpolated-raycast-to-follow-a-weapon-swing/385009 "2017-02-18T00:25:36Z")

</div>

Here is a reference of what I wish to achieve:

---

## [Sharing information between blueprints](https://forums.unrealengine.com/t/sharing-information-between-blueprints/385017)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0efb4f1d](https://forums.unrealengine.com/u/anonymous_user_0efb4f1d)\
**Replies:** 3\
**Last updated:** [February 16, 2017, 4:51pm UTC](https://forums.unrealengine.com/t/sharing-information-between-blueprints/385017 "2017-02-16T16:51:54Z")

</div>

I am making a modified random maze generator that I want to work in two floors. So far I have two blueprints that basically spawn on top of each other, but I want to allow a random connection to go up/down. My idea was t…

---

## [While loop is not iterating through all array elements](https://forums.unrealengine.com/t/while-loop-is-not-iterating-through-all-array-elements/385077)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1ed1c3df](https://forums.unrealengine.com/u/anonymous_user_1ed1c3df)\
**Replies:** 5\
**Last updated:** [February 16, 2017, 9:47am UTC](https://forums.unrealengine.com/t/while-loop-is-not-iterating-through-all-array-elements/385077 "2017-02-16T09:47:00Z")

</div>

I have a buff system I’m trying to prototype. I have a buff object being created and added to an array. I’m printing a list to the screen to see how many items are in the array. Then I’m iterating through the array and c…

---

## [What object to I cast from in blueprint to blueprint casting?](https://forums.unrealengine.com/t/what-object-to-i-cast-from-in-blueprint-to-blueprint-casting/384724)

<div class="topic-metadata">

**Author:** [@r4rev2](https://forums.unrealengine.com/u/r4rev2)\
**Replies:** 1\
**Last updated:** [February 13, 2017, 5:01am UTC](https://forums.unrealengine.com/t/what-object-to-i-cast-from-in-blueprint-to-blueprint-casting/384724 "2017-02-13T05:01:03Z")

</div>

What am I supposed to make the “object”? I’ve tried player controller and everything and it says it isn’t inherited from there so it will always fail. I’m trying to just edit an integer from another widget inside this…

---

## [How would I go about scripting an inventory item that disappears after 30 seconds?](https://forums.unrealengine.com/t/how-would-i-go-about-scripting-an-inventory-item-that-disappears-after-30-seconds/384618)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e2938bf7](https://forums.unrealengine.com/u/anonymous_user_e2938bf7)\
**Replies:** 1\
**Last updated:** [February 11, 2017, 2:50pm UTC](https://forums.unrealengine.com/t/how-would-i-go-about-scripting-an-inventory-item-that-disappears-after-30-seconds/384618 "2017-02-11T14:50:28Z")

</div>

Hey, I have an inventory system set up in my game however I want an item in it to be destroyed after 30 seconds. How would I go about doing that?

---

## [How to declare a UStruct containing a TMap/TArray containing instances of itself?](https://forums.unrealengine.com/t/how-to-declare-a-ustruct-containing-a-tmap-tarray-containing-instances-of-itself/384460)

<div class="topic-metadata">

**Author:** [@Teiwaz](https://forums.unrealengine.com/u/Teiwaz)\
**Replies:** 0\
**Last updated:** [February 9, 2017, 9:57pm UTC](https://forums.unrealengine.com/t/how-to-declare-a-ustruct-containing-a-tmap-tarray-containing-instances-of-itself/384460 "2017-02-09T21:57:51Z")

</div>

I’m currently working on setting up save/load logic for my project, and have run into a problem that’s left me a bit perplexed. To save data, I need to package data about objects into UStructs. I’m trying to build a USt…

---

## [Able to use wildcard variable in function](https://forums.unrealengine.com/t/able-to-use-wildcard-variable-in-function/331801)

<div class="topic-metadata">

**Author:** [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Replies:** 3\
**Last updated:** [February 8, 2017, 5:44pm UTC](https://forums.unrealengine.com/t/able-to-use-wildcard-variable-in-function/331801 "2017-02-08T17:44:46Z")

</div>

I am using able to use a wildcard variable inside of my function, here are steps to reproduce: Create a Macro Add a wildcard input to macro Create a function Create a new input new input’s type should now be a wil…

---

## [How do I make a key's state define the outcome?](https://forums.unrealengine.com/t/how-do-i-make-a-keys-state-define-the-outcome/384033)

<div class="topic-metadata">

**Author:** [@MattHutchings92](https://forums.unrealengine.com/u/MattHutchings92)\
**Replies:** 0\
**Last updated:** [February 5, 2017, 11:23pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-keys-state-define-the-outcome/384033 "2017-02-05T23:23:41Z")

</div>

Hi Guys! Newbie with UE4 and I have a question about input in blueprint. I want to basically have multiple keys (W,A,S,D) feed a variable that all lead to the same ‘run’ animation being played. If one or more of the key…

---

## ["Target" when calling a variable from another Blueprint](https://forums.unrealengine.com/t/target-when-calling-a-variable-from-another-blueprint/369377)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ab9cda3e](https://forums.unrealengine.com/u/anonymous_user_ab9cda3e)\
**Replies:** 1\
**Last updated:** [February 3, 2017, 5:48pm UTC](https://forums.unrealengine.com/t/target-when-calling-a-variable-from-another-blueprint/369377 "2017-02-03T17:48:33Z")

</div>

I have this Float variable from my Character Blueprint (MaxHealth) and I want to cast it to a Text Variable in a Widget Blueprint, so that the value appears as a text inside the widget. I create a new function binded to…

---

## [can't create save game folders and files](https://forums.unrealengine.com/t/cant-create-save-game-folders-and-files/383547)

<div class="topic-metadata">

**Author:** [@Adelgrin](https://forums.unrealengine.com/u/Adelgrin)\
**Replies:** 2\
**Last updated:** [February 1, 2017, 3:10pm UTC](https://forums.unrealengine.com/t/cant-create-save-game-folders-and-files/383547 "2017-02-01T15:10:14Z")

</div>

please post questions in a better manner. this is not related to your “blueprints” tag, nor you supplied any details. how are people supposed to help you?

---

## [How to Save Inventory System?](https://forums.unrealengine.com/t/how-to-save-inventory-system/383563)

<div class="topic-metadata">

**Author:** [@Alvaro\_Rodriguez](https://forums.unrealengine.com/u/Alvaro_Rodriguez)\
**Replies:** 0\
**Last updated:** [February 1, 2017, 2:40am UTC](https://forums.unrealengine.com/t/how-to-save-inventory-system/383563 "2017-02-01T02:40:32Z")

</div>

I made this tutorial on youtube Drag and Drop with UMG But I don’t know how to save the inventory. I know the basic system of saving I learned that on this other tutorial.Time Attack Racer with Blueprints. …

---

## [Can't get cast/reference to work with trigger BP and actors](https://forums.unrealengine.com/t/cant-get-cast-reference-to-work-with-trigger-bp-and-actors/383495)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_7133436a](https://forums.unrealengine.com/u/anonymous_user_7133436a)\
**Replies:** 0\
**Last updated:** [January 31, 2017, 12:35pm UTC](https://forums.unrealengine.com/t/cant-get-cast-reference-to-work-with-trigger-bp-and-actors/383495 "2017-01-31T12:35:20Z")

</div>

I’m having a problem which I find quite strange, I can’t command a Trigger BP to do something, like destroying/Set Actor Location, unless I do an ActorBP reference, and allow to be editable, then I insert the actor insta…

---

## [Graph is linked to private object(s) in an external package.](https://forums.unrealengine.com/t/graph-is-linked-to-private-object-s-in-an-external-package/383015)

<div class="topic-metadata">

**Author:** [@TheRealSpook](https://forums.unrealengine.com/u/TheRealSpook)\
**Replies:** 1\
**Last updated:** [January 30, 2017, 6:36pm UTC](https://forums.unrealengine.com/t/graph-is-linked-to-private-object-s-in-an-external-package/383015 "2017-01-30T18:36:41Z")

</div>

I encountered my favorit error again. I thought I did fix my setup now using a UStruct instead a UClass, but this dont seem to fix my problem. I have no really no idea what is causing this error. I try to make a n-dim…

---

## [Save Custom User Settings](https://forums.unrealengine.com/t/save-custom-user-settings/369019)

<div class="topic-metadata">

**Author:** [@anon93301589](https://forums.unrealengine.com/u/anon93301589)\
**Replies:** 2\
**Last updated:** [January 29, 2017, 3:54pm UTC](https://forums.unrealengine.com/t/save-custom-user-settings/369019 "2017-01-29T15:54:54Z")

</div>

Hi Folks, my UE4 application requires the user to login with it’s own credentials the very first time the application is opened. These information should be then saved and reused on relaunch. Talking about best practi…

---

## [Save GameMode variables in SaveGame class](https://forums.unrealengine.com/t/save-gamemode-variables-in-savegame-class/383029)

<div class="topic-metadata">

**Author:** [@infectedflinch](https://forums.unrealengine.com/u/infectedflinch)\
**Replies:** 5\
**Last updated:** [January 26, 2017, 10:44pm UTC](https://forums.unrealengine.com/t/save-gamemode-variables-in-savegame-class/383029 "2017-01-26T22:44:02Z")

</div>

Hey all, I’m trying to save a bunch of boolean variables from my Game Mode in to my save game class but I can’t find a sane way to do it. How do you do this? These variables link to a UMG showing a bunch of unlocks wit…

---

## [simple casting/referencing problem](https://forums.unrealengine.com/t/simple-casting-referencing-problem/383004)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9dd6a520](https://forums.unrealengine.com/u/anonymous_user_9dd6a520)\
**Replies:** 8\
**Last updated:** [January 26, 2017, 1:50pm UTC](https://forums.unrealengine.com/t/simple-casting-referencing-problem/383004 "2017-01-26T13:50:09Z")

</div>

I’d like an object to follow my mouse cursor but am not able to get a reference to it without it already being in the level somewhere. I can spawn it somewhere in the level, get all actors from class and then it works, …

---

## [adding items to an array in game instance keeps breaking on Unreal restart or build](https://forums.unrealengine.com/t/adding-items-to-an-array-in-game-instance-keeps-breaking-on-unreal-restart-or-build/382690)

<div class="topic-metadata">

**Author:** [@Floggins](https://forums.unrealengine.com/u/Floggins)\
**Replies:** 4\
**Last updated:** [January 25, 2017, 5:23am UTC](https://forums.unrealengine.com/t/adding-items-to-an-array-in-game-instance-keeps-breaking-on-unreal-restart-or-build/382690 "2017-01-25T05:23:44Z")

</div>

I’m not really sure what I’m doing wrong here, but this particular items is causing me a headache. I can’t build any packages, and every time I restart Unreal it break again. There seems to be an issue with the Add Ite…

---

## [How to save player start vector so when player reenters a level, they are placed at the door from which they left?](https://forums.unrealengine.com/t/how-to-save-player-start-vector-so-when-player-reenters-a-level-they-are-placed-at-the-door-from-which-they-left/382577)

<div class="topic-metadata">

**Author:** [@MikeandRosa](https://forums.unrealengine.com/u/MikeandRosa)\
**Replies:** 0\
**Last updated:** [January 21, 2017, 9:07pm UTC](https://forums.unrealengine.com/t/how-to-save-player-start-vector-so-when-player-reenters-a-level-they-are-placed-at-the-door-from-which-they-left/382577 "2017-01-21T21:07:19Z")

</div>

I want to use a SaveGame blueprint to store vector location of a player (as a variable) when the reach a door (that takes player to a different level) so that if the player turns around and leaves, they will arrive at th…

---

## [Compare Arrays for Similar Item](https://forums.unrealengine.com/t/compare-arrays-for-similar-item/382493)

<div class="topic-metadata">

**Author:** [@DMHokie](https://forums.unrealengine.com/u/DMHokie)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 8:11pm UTC](https://forums.unrealengine.com/t/compare-arrays-for-similar-item/382493 "2017-01-20T20:11:43Z")

</div>

I am trying to create a branch to trigger an event. I have multiple arrays of a set of objects that are organized into 2 arrays, one set is for Public, one set is for Private. Those same objects are in another set of a…

---

## [Opening my BPs crashes the editor (references problem)](https://forums.unrealengine.com/t/opening-my-bps-crashes-the-editor-references-problem/378394)

<div class="topic-metadata">

**Author:** [@Nox\_A15](https://forums.unrealengine.com/u/Nox_A15)\
**Replies:** 17\
**Last updated:** [January 19, 2017, 11:03am UTC](https://forums.unrealengine.com/t/opening-my-bps-crashes-the-editor-references-problem/378394 "2017-01-19T11:03:08Z")

</div>

Update (2016-12-07): Hello, I found a 100% sure reproduction of the issue. Create new empty project. Create BP\_Parent (Actor). Create child of BP\_Parent. Let’s call it BP\_Parent\_Child. Create BP\_OtherActor (Actor). O…

---

## [using universal windows runtime apis in unreal engine](https://forums.unrealengine.com/t/using-universal-windows-runtime-apis-in-unreal-engine/382340)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3d6039dd](https://forums.unrealengine.com/u/anonymous_user_3d6039dd)\
**Replies:** 0\
**Last updated:** [January 19, 2017, 9:37am UTC](https://forums.unrealengine.com/t/using-universal-windows-runtime-apis-in-unreal-engine/382340 "2017-01-19T09:37:21Z")

</div>

Hi. We are developing a game for uwp with unreal engine, using microsoft’s fork of unreal engine: https://github.com/MICROSOFT-XBOX-AT...OFT\_UWP\_UNREAL I want to use universal windows runtime apis in my project, but don…

---

## [An array of actors following a circle curve/spline](https://forums.unrealengine.com/t/an-array-of-actors-following-a-circle-curve-spline/382234)

<div class="topic-metadata">

**Author:** [@dalenaxtran](https://forums.unrealengine.com/u/dalenaxtran)\
**Replies:** 2\
**Last updated:** [January 18, 2017, 2:57pm UTC](https://forums.unrealengine.com/t/an-array-of-actors-following-a-circle-curve-spline/382234 "2017-01-18T14:57:36Z")

</div>

Hi everyone, I am new to Unreal’s blueprint scripting and have a very shallow understanding of programming at the moment. I would appreciate your expertise in this area. :slight\_smile: I have a torus ring that I would l…

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

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