# Editor Scripting

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

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

**Page:** 86

---

## [Items in Struct dissapearing!](https://forums.unrealengine.com/t/items-in-struct-dissapearing/377875)

<div class="topic-metadata">

**Author:** [@TheMunky](https://forums.unrealengine.com/u/TheMunky)\
**Replies:** 3\
**Last updated:** [December 4, 2016, 4:19pm UTC](https://forums.unrealengine.com/t/items-in-struct-dissapearing/377875 "2016-12-04T16:19:21Z")

</div>

Hey I was wondering if anybody could help, Basically I have built an Inventory system that stores Items into an “Inventory” Array. Each Item Actor has a “ItemDetailsStruct” containing ; Item name. Item Image. Item A…

---

## [SaveGame flag on Blueprint Structs](https://forums.unrealengine.com/t/savegame-flag-on-blueprint-structs/378152)

<div class="topic-metadata">

**Author:** [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Replies:** 0\
**Last updated:** [December 2, 2016, 11:42pm UTC](https://forums.unrealengine.com/t/savegame-flag-on-blueprint-structs/378152 "2016-12-02T23:42:28Z")

</div>

(Forums aren’t allowing me to post, this is a feature request) For save games, I’m using the method CPF\_SaveGame flag method (as used in Fortnight described here in the highest voted post by Ben Zeigler). This works gre…

---

## [Referencing groups in blueprint?](https://forums.unrealengine.com/t/referencing-groups-in-blueprint/378150)

<div class="topic-metadata">

**Author:** [@Reanym8](https://forums.unrealengine.com/u/Reanym8)\
**Replies:** 1\
**Last updated:** [December 2, 2016, 11:17pm UTC](https://forums.unrealengine.com/t/referencing-groups-in-blueprint/378150 "2016-12-02T23:17:25Z")

</div>

Is there any way to do this? I have a lot of mesh that i need to reference and the blueprint would be very huge.

---

## [How can I get the Player Controller out of a Pawn?](https://forums.unrealengine.com/t/how-can-i-get-the-player-controller-out-of-a-pawn/378147)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9d771975](https://forums.unrealengine.com/u/anonymous_user_9d771975)\
**Replies:** 2\
**Last updated:** [December 2, 2016, 11:15pm UTC](https://forums.unrealengine.com/t/how-can-i-get-the-player-controller-out-of-a-pawn/378147 "2016-12-02T23:15:55Z")

</div>

Playerwhoshot is a Pawn reference. I want to connect Playerwhoshot to the targets of both “Get Viewport Size” and ConvertScreenLocationToWorldSpace". How can I do this?

---

## [Cast reference object variable unpins when starting ue4](https://forums.unrealengine.com/t/cast-reference-object-variable-unpins-when-starting-ue4/377135)

<div class="topic-metadata">

**Author:** [@HiIAmMoot](https://forums.unrealengine.com/u/HiIAmMoot)\
**Replies:** 10\
**Last updated:** [November 30, 2016, 5:54pm UTC](https://forums.unrealengine.com/t/cast-reference-object-variable-unpins-when-starting-ue4/377135 "2016-11-30T17:54:59Z")

</div>

So I’ve stumbled upon a weird issue. Everytime I start UE4, some cast object variables get unpinned which causes me errors. If I pin them and compile they work fine… But get reset when I restart the engine again… Any id…

---

## [Set Constraint Reference nodes explanation?!](https://forums.unrealengine.com/t/set-constraint-reference-nodes-explanation/350034)

<div class="topic-metadata">

**Author:** [@Nicat](https://forums.unrealengine.com/u/Nicat)\
**Replies:** 12\
**Last updated:** [November 30, 2016, 8:51am UTC](https://forums.unrealengine.com/t/set-constraint-reference-nodes-explanation/350034 "2016-11-30T08:51:09Z")

</div>

For the love of God. Can someone explain how to use those 3 nodes please? I am going nuts here… Set Constraint Reference Frame/Orientation/Position how on earth can I use these?? 2 people have asked about this and ZERO a…

---

## [How to modify Player State variable value in game ?](https://forums.unrealengine.com/t/how-to-modify-player-state-variable-value-in-game/377589)

<div class="topic-metadata">

**Author:** [@Malliana](https://forums.unrealengine.com/u/Malliana)\
**Replies:** 4\
**Last updated:** [November 28, 2016, 12:30am UTC](https://forums.unrealengine.com/t/how-to-modify-player-state-variable-value-in-game/377589 "2016-11-28T00:30:26Z")

</div>

Hello people ! I want to know how to change the value of a variable inside our player state ? I need to make the player be able to use button (Widget hud) to change the “integer” inside the player state. I can’t find a…

---

## [Why can't I save CanvasRenderTarget2D objects in a savegame?](https://forums.unrealengine.com/t/why-cant-i-save-canvasrendertarget2d-objects-in-a-savegame/377630)

<div class="topic-metadata">

**Author:** [@Dannington](https://forums.unrealengine.com/u/Dannington)\
**Replies:** 0\
**Last updated:** [November 27, 2016, 10:08pm UTC](https://forums.unrealengine.com/t/why-cant-i-save-canvasrendertarget2d-objects-in-a-savegame/377630 "2016-11-27T22:08:36Z")

</div>

Hi, bit of a frustrating issue i’m facing. I have a game - a Q+A type game - which builds it’s assets on the fly from a web-page (BLUI) which is dissected into image tiles. I have a struct array which holds all of my q…

---

## [Get a variable from another blueprint](https://forums.unrealengine.com/t/get-a-variable-from-another-blueprint/377428)

<div class="topic-metadata">

**Author:** [@Denis](https://forums.unrealengine.com/u/Denis)\
**Replies:** 2\
**Last updated:** [November 27, 2016, 9:44pm UTC](https://forums.unrealengine.com/t/get-a-variable-from-another-blueprint/377428 "2016-11-27T21:44:18Z")

</div>

You can either link the actors through the blueprint or search for it by getting all actors of class or you can bind an event to it. Event Dispatchers would be the keywords you are looking for in that case. HTH

---

## [How to get Vector Variable before 2 seconds.](https://forums.unrealengine.com/t/how-to-get-vector-variable-before-2-seconds/377416)

<div class="topic-metadata">

**Author:** [@pprkgraphiks](https://forums.unrealengine.com/u/pprkgraphiks)\
**Replies:** 3\
**Last updated:** [November 25, 2016, 6:01pm UTC](https://forums.unrealengine.com/t/how-to-get-vector-variable-before-2-seconds/377416 "2016-11-25T18:01:39Z")

</div>

Hello.everyone. I set up to get current location of character. tick is alright,but i want to get variable of last frame or before 2 seconds. how to get past vector variable? thx for read my thread.

---

## [Smooth camera rotation when dealing with Use Pawn Control Rotation?](https://forums.unrealengine.com/t/smooth-camera-rotation-when-dealing-with-use-pawn-control-rotation/376715)

<div class="topic-metadata">

**Author:** [@Xanadron](https://forums.unrealengine.com/u/Xanadron)\
**Replies:** 3\
**Last updated:** [November 21, 2016, 8:04pm UTC](https://forums.unrealengine.com/t/smooth-camera-rotation-when-dealing-with-use-pawn-control-rotation/376715 "2016-11-21T20:04:42Z")

</div>

Hi, i am making a game in first person using the third person template. When the character is rolling from a fall i uncheck the Use Pawn Control Rotation to give the camera a more realistic rotation, but when i am not ro…

---

## [How can I set an element on a structure array that is within another structure array?](https://forums.unrealengine.com/t/how-can-i-set-an-element-on-a-structure-array-that-is-within-another-structure-array/360994)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d251ba761](https://forums.unrealengine.com/u/anonymous_user_d251ba761)\
**Replies:** 1\
**Last updated:** [November 21, 2016, 1:01am UTC](https://forums.unrealengine.com/t/how-can-i-set-an-element-on-a-structure-array-that-is-within-another-structure-array/360994 "2016-11-21T01:01:26Z")

</div>

I’m having an issue setting a structure array that is within another structure array. This is an example of what I am talking of: I use a set array element node to set it to the correct array in the double array port…

---

## [Forward Struct Declaration impossible with C++?](https://forums.unrealengine.com/t/forward-struct-declaration-impossible-with-c/376130)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b23f4a36](https://forums.unrealengine.com/u/anonymous_user_b23f4a36)\
**Replies:** 5\
**Last updated:** [November 18, 2016, 9:28pm UTC](https://forums.unrealengine.com/t/forward-struct-declaration-impossible-with-c/376130 "2016-11-18T21:28:16Z")

</div>

I don’t understand why he says i can’t use that pointer there. :confused: I just started on ue4 C++ this is my first code ever.

---

## [Crash when returning nullptr for function](https://forums.unrealengine.com/t/crash-when-returning-nullptr-for-function/376573)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d251ba761](https://forums.unrealengine.com/u/anonymous_user_d251ba761)\
**Replies:** 2\
**Last updated:** [November 17, 2016, 11:48pm UTC](https://forums.unrealengine.com/t/crash-when-returning-nullptr-for-function/376573 "2016-11-17T23:48:47Z")

</div>

When returning nullptr my UE4 crashes. I’m trying to make a saving function and when the save text is nothing it checks whether it is valid and then returns the nullptr value instead of the cast. How is returning null m…

---

## [Getting a warning with the EASE node saying it needs an exec pin](https://forums.unrealengine.com/t/getting-a-warning-with-the-ease-node-saying-it-needs-an-exec-pin/376519)

<div class="topic-metadata">

**Author:** [@Ghar](https://forums.unrealengine.com/u/Ghar)\
**Replies:** 2\
**Last updated:** [November 17, 2016, 6:42pm UTC](https://forums.unrealengine.com/t/getting-a-warning-with-the-ease-node-saying-it-needs-an-exec-pin/376519 "2016-11-17T18:42:53Z")

</div>

I’m getting the following warning with all of the Ease nodes I’m using: The node won’t be pruned as isolated one. The node is not pure, but it has no exec pin(s) Verify IsNodePure implementation in K2Node Ease Function. …

---

## [Error : Referenced by CharacterMesh0](https://forums.unrealengine.com/t/error-referenced-by-charactermesh0/376540)

<div class="topic-metadata">

**Author:** [@Axxi](https://forums.unrealengine.com/u/Axxi)\
**Replies:** 2\
**Last updated:** [November 17, 2016, 3:39pm UTC](https://forums.unrealengine.com/t/error-referenced-by-charactermesh0/376540 "2016-11-17T15:39:20Z")

</div>

Hello i get this error always if i try to delete the campfire blueprint for example the error changes to another blueprint with the same transient error on charactermesh0, someone had the error?

---

## [Creating a save game object using a BP via C++](https://forums.unrealengine.com/t/creating-a-save-game-object-using-a-bp-via-c/333942)

<div class="topic-metadata">

**Author:** [@MichaelWion](https://forums.unrealengine.com/u/MichaelWion)\
**Replies:** 1\
**Last updated:** [November 14, 2016, 12:36pm UTC](https://forums.unrealengine.com/t/creating-a-save-game-object-using-a-bp-via-c/333942 "2016-11-14T12:36:10Z")

</div>

I have a base class in C++ which derives from USaveGame, and a blueprint which has this class set as it’s parent. In another C++ class, I am trying to use UGameplayStatics::CreateSaveGameObjectFromBlueprint, but I’m havi…

---

## [OSX Art Tool Ships with Compiled Python Files](https://forums.unrealengine.com/t/osx-art-tool-ships-with-compiled-python-files/375715)

<div class="topic-metadata">

**Author:** [@NinaSzeven](https://forums.unrealengine.com/u/NinaSzeven)\
**Replies:** 2\
**Last updated:** [November 12, 2016, 7:38pm UTC](https://forums.unrealengine.com/t/osx-art-tool-ships-with-compiled-python-files/375715 "2016-11-12T19:38:05Z")

</div>

The current version of the Art Tool for Maya ships with compiled python files that contain tokens to Windows paths. This breaks UI methods in the “Add Character” dialog. (As well as other items I haven’t tested yet). E…

---

## [Saves and server-client](https://forums.unrealengine.com/t/saves-and-server-client/376103)

<div class="topic-metadata">

**Author:** [@Alfffffffffff](https://forums.unrealengine.com/u/Alfffffffffff)\
**Replies:** 0\
**Last updated:** [November 12, 2016, 10:37am UTC](https://forums.unrealengine.com/t/saves-and-server-client/376103 "2016-11-12T10:37:30Z")

</div>

If you save the game using a Run on Server event, the save will be stored in the server and if you use a Run on Client event, the save will be stored in the client?? TY

---

## [Saving & Slots](https://forums.unrealengine.com/t/saving-slots/375895)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2fe4ecee](https://forums.unrealengine.com/u/anonymous_user_2fe4ecee)\
**Replies:** 2\
**Last updated:** [November 10, 2016, 4:19pm UTC](https://forums.unrealengine.com/t/saving-slots/375895 "2016-11-10T16:19:32Z")

</div>

I am relatively new to the saving part of of UE4 and I currently have one SaveGame class. I am adding a leveling up system to my game but I was wondering if it is possible to add something else to the same save slot inst…

---

## [Unexpected behavior with SaveGame](https://forums.unrealengine.com/t/unexpected-behavior-with-savegame/375934)

<div class="topic-metadata">

**Author:** [@MadKrzysiek](https://forums.unrealengine.com/u/MadKrzysiek)\
**Replies:** 1\
**Last updated:** [November 10, 2016, 10:24am UTC](https://forums.unrealengine.com/t/unexpected-behavior-with-savegame/375934 "2016-11-10T10:24:18Z")

</div>

Hello guys, I have a class UFPSSaveGame derived from USaveGame which holds properties to save and another class - SaveGameManager. There are structures and arrays describing player profile, collected items in-game and …

---

## [Reverse Find in Array](https://forums.unrealengine.com/t/reverse-find-in-array/375831)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c65c439d](https://forums.unrealengine.com/u/anonymous_user_c65c439d)\
**Replies:** 3\
**Last updated:** [November 9, 2016, 1:39pm UTC](https://forums.unrealengine.com/t/reverse-find-in-array/375831 "2016-11-09T13:39:32Z")

</div>

Hi, i am currently attempting to make a crude RTS, and i have a build queue for units. however i want to be able remove an item from the queue without removing index 0, as this will reset build timers. instead i want to…

---

## [How is this variable 0 here?](https://forums.unrealengine.com/t/how-is-this-variable-0-here/375416)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_210522a1](https://forums.unrealengine.com/u/anonymous_user_210522a1)\
**Replies:** 1\
**Last updated:** [November 4, 2016, 8:56pm UTC](https://forums.unrealengine.com/t/how-is-this-variable-0-here/375416 "2016-11-04T20:56:33Z")

</div>

I was working on a cover generating script that is triggered via bp construction script that calls a C++ method. But for some reason one aof my variables always is 0 and I don’t know how? .h: .cpp: 113788- As you…

---

## [Save the game no checkpoint](https://forums.unrealengine.com/t/save-the-game-no-checkpoint/375293)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_791dc8b01](https://forums.unrealengine.com/u/anonymous_user_791dc8b01)\
**Replies:** 1\
**Last updated:** [November 3, 2016, 4:05pm UTC](https://forums.unrealengine.com/t/save-the-game-no-checkpoint/375293 "2016-11-03T16:05:07Z")

</div>

How can i create a system for save a game without using the checkpoint system but save in the last game state ex: x pos y pos and z pos and other parameters

---

## [Motion controller actors being spawn at runtime, how do I reference them to retrieve their transform?](https://forums.unrealengine.com/t/motion-controller-actors-being-spawn-at-runtime-how-do-i-reference-them-to-retrieve-their-transform/375281)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f70f346b1](https://forums.unrealengine.com/u/anonymous_user_f70f346b1)\
**Replies:** 0\
**Last updated:** [November 3, 2016, 11:32am UTC](https://forums.unrealengine.com/t/motion-controller-actors-being-spawn-at-runtime-how-do-i-reference-them-to-retrieve-their-transform/375281 "2016-11-03T11:32:20Z")

</div>

At the moment I’m using Vive’s trigger to grab stuff and the face button 1 to spawn cubes in a level at target point actor. I want the cubes to spawn in the current position of the motion controller/ or in front of the …

---

## [TArray elements disappear after a few seconds in inventory](https://forums.unrealengine.com/t/tarray-elements-disappear-after-a-few-seconds-in-inventory/375050)

<div class="topic-metadata">

**Author:** [@Lord\_Northern](https://forums.unrealengine.com/u/Lord_Northern)\
**Replies:** 5\
**Last updated:** [November 2, 2016, 6:47pm UTC](https://forums.unrealengine.com/t/tarray-elements-disappear-after-a-few-seconds-in-inventory/375050 "2016-11-02T18:47:45Z")

</div>

Hi. I’m experiencing some rather weird problem within my project. I’m building an inventory system (C++, based off third person template, UE4.13.1 compiled from github). Here’s my setup. I have a class based off on a…

---

## [Can you access an ustruct from another class](https://forums.unrealengine.com/t/can-you-access-an-ustruct-from-another-class/375185)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_210522a1](https://forums.unrealengine.com/u/anonymous_user_210522a1)\
**Replies:** 4\
**Last updated:** [November 2, 2016, 4:43pm UTC](https://forums.unrealengine.com/t/can-you-access-an-ustruct-from-another-class/375185 "2016-11-02T16:43:26Z")

</div>

So I am trying to make an struct that I want to use in different classes, but I don’t want to have the decleration of the struct in every class. How can I achieve an ustruct that is accessable from multiple classes and …

---

## [How do you pass a Ustruct to a c++ function](https://forums.unrealengine.com/t/how-do-you-pass-a-ustruct-to-a-c-function/374882)

<div class="topic-metadata">

**Author:** [@Glass\_Baine](https://forums.unrealengine.com/u/Glass_Baine)\
**Replies:** 10\
**Last updated:** [November 1, 2016, 5:06pm UTC](https://forums.unrealengine.com/t/how-do-you-pass-a-ustruct-to-a-c-function/374882 "2016-11-01T17:06:10Z")

</div>

I have a ustruct #pragma once #include "TD.h" #include "Structures.generated.h" USTRUCT(BlueprintType) struct F\_Int\_2D\_Vector { GENERATED\_USTRUCT\_BODY() public: UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = …

---

## [Item Not Added to Inventory](https://forums.unrealengine.com/t/item-not-added-to-inventory/374895)

<div class="topic-metadata">

**Author:** [@AlienRadar](https://forums.unrealengine.com/u/AlienRadar)\
**Replies:** 0\
**Last updated:** [October 30, 2016, 7:17pm UTC](https://forums.unrealengine.com/t/item-not-added-to-inventory/374895 "2016-10-30T19:17:22Z")

</div>

I am using Unreal 4.10 and following the tutorials on the Unreal Engine youtube channel (UMG UI Inventory: Adding Player Input & Testing | 07 | v4.8 Tutorial Series | Unreal Engine - YouTube). I have set it up how he set…

---

## [Armour and level swap](https://forums.unrealengine.com/t/armour-and-level-swap/373550)

<div class="topic-metadata">

**Author:** [@kmaster30](https://forums.unrealengine.com/u/kmaster30)\
**Replies:** 131\
**Last updated:** [October 29, 2016, 3:34am UTC](https://forums.unrealengine.com/t/armour-and-level-swap/373550 "2016-10-29T03:34:24Z")

</div>

As the title says what’s the best way to keep equipped the armour your wearing when you switch/ reopen levelz

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

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