# Editor Scripting

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

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

**Page:** 98

---

## [Referencing Problem](https://forums.unrealengine.com/t/referencing-problem/328635)

<div class="topic-metadata">

**Author:** [@Waveblock](https://forums.unrealengine.com/u/Waveblock)\
**Replies:** 6\
**Last updated:** [August 16, 2015, 4:17am UTC](https://forums.unrealengine.com/t/referencing-problem/328635 "2015-08-16T04:17:31Z")

</div>

I think you might have to add another cast node between your EventTick and the UpdateHealth function. Or… I see you’re already storing the casted reference, so pass ThirdPersonBP into the GetHealth node.

---

## [Object References Vanishing](https://forums.unrealengine.com/t/object-references-vanishing/328077)

<div class="topic-metadata">

**Author:** [@Envisioner](https://forums.unrealengine.com/u/Envisioner)\
**Replies:** 8\
**Last updated:** [August 15, 2015, 10:57pm UTC](https://forums.unrealengine.com/t/object-references-vanishing/328077 "2015-08-15T22:57:31Z")

</div>

Any time I attempt to instantiate an object via C++ using both NewObject() (for UObject types) and CreateDefaultSubobject() (for ActorComponent types), the reference will become invalid as soon as I’ve left the scope of …

---

## [How to reference an instance of a Blueprint from the Level Blueprint?](https://forums.unrealengine.com/t/how-to-reference-an-instance-of-a-blueprint-from-the-level-blueprint/296754)

<div class="topic-metadata">

**Author:** [@vib](https://forums.unrealengine.com/u/vib)\
**Replies:** 5\
**Last updated:** [August 13, 2015, 9:52pm UTC](https://forums.unrealengine.com/t/how-to-reference-an-instance-of-a-blueprint-from-the-level-blueprint/296754 "2015-08-13T21:52:34Z")

</div>

I want to get a reference of an instance of a Pawn Blueprint I placed on the level from the Level Blueprint. I’m following this official tutorial on how to set up Blueprint communications. I was able to do it just like t…

---

## [Storing Information - Database equivalent (?)](https://forums.unrealengine.com/t/storing-information-database-equivalent/328280)

<div class="topic-metadata">

**Author:** [@DaveL88](https://forums.unrealengine.com/u/DaveL88)\
**Replies:** 3\
**Last updated:** [August 12, 2015, 12:30pm UTC](https://forums.unrealengine.com/t/storing-information-database-equivalent/328280 "2015-08-12T12:30:08Z")

</div>

Hey Guys, I have a question concerning storing information in Unreal Engine 4. Basically I want to enter things like names, mission parameters, item information etc. into my project so it can be referenced while playin…

---

## [Editing Inventory Struct Variable](https://forums.unrealengine.com/t/editing-inventory-struct-variable/328270)

<div class="topic-metadata">

**Author:** [@serpentine19](https://forums.unrealengine.com/u/serpentine19)\
**Replies:** 1\
**Last updated:** [August 11, 2015, 1:00am UTC](https://forums.unrealengine.com/t/editing-inventory-struct-variable/328270 "2015-08-11T01:00:01Z")

</div>

When dealing with arrays of structs you need to use Set Array Element. I know it was like this for 4.7.6, I’m hoping it is fixed or will be fixed soon. Workaround example:

---

## [How to make an inventory system](https://forums.unrealengine.com/t/how-to-make-an-inventory-system/328265)

<div class="topic-metadata">

**Author:** [@MoonwareGames](https://forums.unrealengine.com/u/MoonwareGames)\
**Replies:** 1\
**Last updated:** [August 10, 2015, 11:16pm UTC](https://forums.unrealengine.com/t/how-to-make-an-inventory-system/328265 "2015-08-10T23:16:29Z")

</div>

Hey guys, I need really help. I try to make an inventory system. But all I do don’t work. Can somebody help please? Would be glad about help

---

## [SaveGame load crash - release only](https://forums.unrealengine.com/t/savegame-load-crash-release-only/327773)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_01dd28a6](https://forums.unrealengine.com/u/anonymous_user_01dd28a6)\
**Replies:** 9\
**Last updated:** [August 10, 2015, 3:00pm UTC](https://forums.unrealengine.com/t/savegame-load-crash-release-only/327773 "2015-08-10T15:00:28Z")

</div>

Our game uses PGraphicsMenu, a package from the asset store to set graphics options. We have debugged the package quite a bit. It uses ExecuteConsoleCommand. We load from a graphics.sav file with load SaveGame. After…

---

## [Blueprint passing Question](https://forums.unrealengine.com/t/blueprint-passing-question/327868)

<div class="topic-metadata">

**Author:** [@AtheedJDB](https://forums.unrealengine.com/u/AtheedJDB)\
**Replies:** 1\
**Last updated:** [August 7, 2015, 2:33pm UTC](https://forums.unrealengine.com/t/blueprint-passing-question/327868 "2015-08-07T14:33:37Z")

</div>

This is probably a noob question, but I am having issues calling a event into a blueprint for a basic inventory system. I followed the UMG inventory from youtube and have that working but I wanted to try to make my own s…

---

## [How to cast variable from different level?](https://forums.unrealengine.com/t/how-to-cast-variable-from-different-level/327722)

<div class="topic-metadata">

**Author:** [@joce000](https://forums.unrealengine.com/u/joce000)\
**Replies:** 0\
**Last updated:** [August 5, 2015, 10:34am UTC](https://forums.unrealengine.com/t/how-to-cast-variable-from-different-level/327722 "2015-08-05T10:34:28Z")

</div>

I have a variable in blueprint and i want to use it in level blueprint of another level. When i drag a wire from target and turn on context sensitive i have cast to ,blueprint from another level name˝, but what should i …

---

## [Adding c++ header to Actor breaks Blueprints](https://forums.unrealengine.com/t/adding-c-header-to-actor-breaks-blueprints/327662)

<div class="topic-metadata">

**Author:** [@irdc](https://forums.unrealengine.com/u/irdc)\
**Replies:** 2\
**Last updated:** [August 4, 2015, 9:08pm UTC](https://forums.unrealengine.com/t/adding-c-header-to-actor-breaks-blueprints/327662 "2015-08-04T21:08:25Z")

</div>

Greetings. As I am still learning Blueprints, I am not sure if this is a possible bug or if this is working as intended. It seems more of a bug. Basically, I have a C++ actor that is Blueprint accessible. In my Level…

---

## [Inventory with Pick and Place](https://forums.unrealengine.com/t/inventory-with-pick-and-place/327659)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_46e05bad](https://forums.unrealengine.com/u/anonymous_user_46e05bad)\
**Replies:** 0\
**Last updated:** [August 4, 2015, 7:48pm UTC](https://forums.unrealengine.com/t/inventory-with-pick-and-place/327659 "2015-08-04T19:48:54Z")

</div>

Good afternoon everyone. First I apologize for my English. I would like to know the following. How to Make an inventory item and you can get the item and then put. Only when you place the item, it has a location of c…

---

## [Inventory with Pick and Place](https://forums.unrealengine.com/t/inventory-with-pick-and-place/327658)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_46e05bad](https://forums.unrealengine.com/u/anonymous_user_46e05bad)\
**Replies:** 0\
**Last updated:** [August 4, 2015, 7:48pm UTC](https://forums.unrealengine.com/t/inventory-with-pick-and-place/327658 "2015-08-04T19:48:19Z")

</div>

Good afternoon everyone. First I apologize for my English. I would like to know the following. How to Make an inventory item and you can get the item and then put. Only when you place the item, it has a location of c…

---

## [Cant Lauch the game in HTML5](https://forums.unrealengine.com/t/cant-lauch-the-game-in-html5/327473)

<div class="topic-metadata">

**Author:** [@77120](https://forums.unrealengine.com/u/77120)\
**Replies:** 3\
**Last updated:** [August 4, 2015, 3:11pm UTC](https://forums.unrealengine.com/t/cant-lauch-the-game-in-html5/327473 "2015-08-04T15:11:24Z")

</div>

If i try to launch the game in HTML5 i get the following errors LogPlayLevel: Project.Package: \*\*\*\*\*\*\*\*\*\* PACKAGE COMMAND STARTED \*\*\*\*\*\*\*\*\*\* LogPlayLevel: HTML5Platform.Package: Package C:\\Users\\Jyro\\Documents\\Unreal Pr…

---

## [4.8.3 Is there meant to be a difference between using arrays within Functions vs Events?](https://forums.unrealengine.com/t/4-8-3-is-there-meant-to-be-a-difference-between-using-arrays-within-functions-vs-events/327504)

<div class="topic-metadata">

**Author:** [@Faelinor](https://forums.unrealengine.com/u/Faelinor)\
**Replies:** 3\
**Last updated:** [August 3, 2015, 8:00pm UTC](https://forums.unrealengine.com/t/4-8-3-is-there-meant-to-be-a-difference-between-using-arrays-within-functions-vs-events/327504 "2015-08-03T20:00:25Z")

</div>

I came across as situation where I was attempting to take an array and remove an item at index. When the array was referenced from the same blueprint, it worked correctly, but if the array came from an input into the met…

---

## [Interpolate rotation between objects](https://forums.unrealengine.com/t/interpolate-rotation-between-objects/327538)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_7a386022](https://forums.unrealengine.com/u/anonymous_user_7a386022)\
**Replies:** 0\
**Last updated:** [August 3, 2015, 6:40pm UTC](https://forums.unrealengine.com/t/interpolate-rotation-between-objects/327538 "2015-08-03T18:40:55Z")

</div>

hi, i try to interpolate the rotation of multiple objects inbetween Object A and Object B. but at this moment i stuck totaly. maybe someone has a help for me if object B is rotated for example by 90 degrees , the other…

---

## [UStruct Constructor](https://forums.unrealengine.com/t/ustruct-constructor/327385)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_41948240](https://forums.unrealengine.com/u/anonymous_user_41948240)\
**Replies:** 5\
**Last updated:** [August 2, 2015, 6:57pm UTC](https://forums.unrealengine.com/t/ustruct-constructor/327385 "2015-08-02T18:57:10Z")

</div>

Is there a way of having a constructor in a UStruct? For example something like: USTRUCT() struct Weapon { GENERATED\_USTRUCT\_BODY() Weapon(FString n="", int32 d=0) : name(n), damage(d) {} UPROPERTY() FString name; …

---

## [Good solution for a complex BP inventory? (and saving it)](https://forums.unrealengine.com/t/good-solution-for-a-complex-bp-inventory-and-saving-it/327266)

<div class="topic-metadata">

**Author:** [@Zero-Night](https://forums.unrealengine.com/u/Zero-Night)\
**Replies:** 4\
**Last updated:** [August 2, 2015, 1:28am UTC](https://forums.unrealengine.com/t/good-solution-for-a-complex-bp-inventory-and-saving-it/327266 "2015-08-02T01:28:35Z")

</div>

So there are a few BP inventory tutorials around, but nothing that really covers what I’m looking for, at least not that I’ve been able to find. Most just cover storing actors and data in their default state, but I’m wor…

---

## [Dynamic materials not responding when called from within a Material Instance Dynamic array](https://forums.unrealengine.com/t/dynamic-materials-not-responding-when-called-from-within-a-material-instance-dynamic-array/327295)

<div class="topic-metadata">

**Author:** [@DNADrone](https://forums.unrealengine.com/u/DNADrone)\
**Replies:** 0\
**Last updated:** [August 1, 2015, 3:31pm UTC](https://forums.unrealengine.com/t/dynamic-materials-not-responding-when-called-from-within-a-material-instance-dynamic-array/327295 "2015-08-01T15:31:57Z")

</div>

Hello, Here in the image below, I am instantiating static mesh components through a construction script inside a blueprint class (There is a for loop before since i need as many static meshes as many times the loop will…

---

## [How to make a locked door that opens with a key thats in my array?](https://forums.unrealengine.com/t/how-to-make-a-locked-door-that-opens-with-a-key-thats-in-my-array/293649)

<div class="topic-metadata">

**Author:** [@gotgrassct](https://forums.unrealengine.com/u/gotgrassct)\
**Replies:** 4\
**Last updated:** [August 1, 2015, 4:57am UTC](https://forums.unrealengine.com/t/how-to-make-a-locked-door-that-opens-with-a-key-thats-in-my-array/293649 "2015-08-01T04:57:32Z")

</div>

I Have an inventory system i made using arrays, how would i make a locked door that only opens up when i have a key item inside of my inventory array?

---

## [Reference debris from destructible mesh](https://forums.unrealengine.com/t/reference-debris-from-destructible-mesh/326958)

<div class="topic-metadata">

**Author:** [@mago314](https://forums.unrealengine.com/u/mago314)\
**Replies:** 0\
**Last updated:** [July 29, 2015, 12:21pm UTC](https://forums.unrealengine.com/t/reference-debris-from-destructible-mesh/326958 "2015-07-29T12:21:05Z")

</div>

Hey everyone. Is there a way to get a reference for a single debris piece from a broken destructible? For example, to get the position of certain debris. Thanks in advance

---

## [UFUNCTION Blueprint callable - Error missing variable name](https://forums.unrealengine.com/t/ufunction-blueprint-callable-error-missing-variable-name/326438)

<div class="topic-metadata">

**Author:** [@shotoreaper](https://forums.unrealengine.com/u/shotoreaper)\
**Replies:** 2\
**Last updated:** [July 25, 2015, 8:20am UTC](https://forums.unrealengine.com/t/ufunction-blueprint-callable-error-missing-variable-name/326438 "2015-07-25T08:20:57Z")

</div>

Hi! I get that error when I compile this code: AmazingVRCharacter.h UFUNCTION(BlueprintCallable, Category = Power) void CreateNewPhysicsConstraintBetween(AStaticMeshActor\*, AStaticMeshActor\*); The code compile perfec…

---

## [Variable gets overwritten in BP?](https://forums.unrealengine.com/t/variable-gets-overwritten-in-bp/326385)

<div class="topic-metadata">

**Author:** [@T-low](https://forums.unrealengine.com/u/T-low)\
**Replies:** 0\
**Last updated:** [July 24, 2015, 12:24pm UTC](https://forums.unrealengine.com/t/variable-gets-overwritten-in-bp/326385 "2015-07-24T12:24:28Z")

</div>

Hi, I whant to save a variable in each TreeBP duplicate. The lower graphic shows how the TreeBP should save the display name in IDName on the overlap event… So when I walk next to the 3 TreeBPs over point 1,2,3 the …

---

## [C++ USTRUCTs becomes invalid after compilation](https://forums.unrealengine.com/t/c-ustructs-becomes-invalid-after-compilation/326197)

<div class="topic-metadata">

**Author:** [@hjeldin](https://forums.unrealengine.com/u/hjeldin)\
**Replies:** 5\
**Last updated:** [July 24, 2015, 1:34am UTC](https://forums.unrealengine.com/t/c-ustructs-becomes-invalid-after-compilation/326197 "2015-07-24T01:34:44Z")

</div>

Hi all, After an hot-reload i get the following errors . http://puu.sh/j8Zhe/f3685de24a.png VrHost/Snapshot/etc are quite simple ustructs that are generated in c++ and exposed to blueprint. You can find the source \[…

---

## [Why isn't my custom USTRUCT being included](https://forums.unrealengine.com/t/why-isnt-my-custom-ustruct-being-included/325951)

<div class="topic-metadata">

**Author:** [@Brandon\_Wamboldt](https://forums.unrealengine.com/u/Brandon_Wamboldt)\
**Replies:** 2\
**Last updated:** [July 21, 2015, 1:05pm UTC](https://forums.unrealengine.com/t/why-isnt-my-custom-ustruct-being-included/325951 "2015-07-21T13:05:47Z")

</div>

I have added a custom USTRUCT in C++ but it isn’t available in the editor, even after a complete restart. My project is titled “CrashGame”. In CrashGame.h, I have this: #pragma once #include "Engine.h" #include "Crash…

---

## [How would you go about making separate saves for each level in a game?](https://forums.unrealengine.com/t/how-would-you-go-about-making-separate-saves-for-each-level-in-a-game/289789)

<div class="topic-metadata">

**Author:** [@TarlRaney](https://forums.unrealengine.com/u/TarlRaney)\
**Replies:** 1\
**Last updated:** [July 19, 2015, 11:48pm UTC](https://forums.unrealengine.com/t/how-would-you-go-about-making-separate-saves-for-each-level-in-a-game/289789 "2015-07-19T23:48:55Z")

</div>

I’m making a simple platformer to learn blueprints. The general gist of gameplay is collect all the coins in the level as fast as you can. I’ve worked out how to actually save the best time through various tutorials and …

---

## [How to save and load player position in blueprint](https://forums.unrealengine.com/t/how-to-save-and-load-player-position-in-blueprint/319107)

<div class="topic-metadata">

**Author:** [@MoonwareGames](https://forums.unrealengine.com/u/MoonwareGames)\
**Replies:** 3\
**Last updated:** [July 19, 2015, 11:44pm UTC](https://forums.unrealengine.com/t/how-to-save-and-load-player-position-in-blueprint/319107 "2015-07-19T23:44:21Z")

</div>

I want to save and load the player position by using a blueprint. How to do it? Thanks for the help.

---

## [How to get a reference to AAIController ?](https://forums.unrealengine.com/t/how-to-get-a-reference-to-aaicontroller/325718)

<div class="topic-metadata">

**Author:** [@Syntopia](https://forums.unrealengine.com/u/Syntopia)\
**Replies:** 2\
**Last updated:** [July 19, 2015, 5:30pm UTC](https://forums.unrealengine.com/t/how-to-get-a-reference-to-aaicontroller/325718 "2015-07-19T17:30:14Z")

</div>

Hello, I need to get a reference to AAIController from character class, and when obtain the location of my bot after pressing the key. How to do it right ? I unsuccessfully tried to do this by using these methods: Than…

---

## [\[Solved, sort of\]\[4.7 preview 3 error\] Failure To Save Blueprint Function Library - Linked To External Package Engine/Transient](https://forums.unrealengine.com/t/solved-sort-of-4-7-preview-3-error-failure-to-save-blueprint-function-library-linked-to-external-package-engine-transient/304426)

<div class="topic-metadata">

**Author:** [@Kevin0814](https://forums.unrealengine.com/u/Kevin0814)\
**Replies:** 7\
**Last updated:** [July 19, 2015, 3:04pm UTC](https://forums.unrealengine.com/t/solved-sort-of-4-7-preview-3-error-failure-to-save-blueprint-function-library-linked-to-external-package-engine-transient/304426 "2015-07-19T15:04:56Z")

</div>

My blueprint saved fine before, so I think this is an error with the 4.7 beta. The error it gives me is as follows: \*Can’t save …/…/…/…/…/…/Users/Kevin/Desktop/Test\_Encounter\_3/Saved/Autosaves/Game/Blueprints/Battle\_Fun…

---

## [Can't take correct value inside struct](https://forums.unrealengine.com/t/cant-take-correct-value-inside-struct/323662)

<div class="topic-metadata">

**Author:** [@ale929\_1](https://forums.unrealengine.com/u/ale929_1)\
**Replies:** 9\
**Last updated:** [July 15, 2015, 2:27pm UTC](https://forums.unrealengine.com/t/cant-take-correct-value-inside-struct/323662 "2015-07-15T14:27:26Z")

</div>

I copied the inventory from “Inventory UI with UMG” project (inside the learn tab) and tried to add inside the inventory struct another value, an integer for stacking object. The problem is that if i set the integer insi…

---

## [Why isn't VInterpTo(AActor-\>GetForwardVector()) moving forward?](https://forums.unrealengine.com/t/why-isnt-vinterpto-aactor-getforwardvector-moving-forward/325210)

<div class="topic-metadata">

**Author:** [@HInoue](https://forums.unrealengine.com/u/HInoue)\
**Replies:** 4\
**Last updated:** [July 14, 2015, 11:57pm UTC](https://forums.unrealengine.com/t/why-isnt-vinterpto-aactor-getforwardvector-moving-forward/325210 "2015-07-14T23:57:31Z")

</div>

I’m trying to write a function that will VInterpTo() every tick to move the player an arbitrary distance in a given direction, in this case in the direction he’s facing: void UMovementNotifyState::NotifyBegin(USkeletalM…

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

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