# Editor Scripting

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

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

**Page:** 94

---

## [How to make a Clock based on a single Variable](https://forums.unrealengine.com/t/how-to-make-a-clock-based-on-a-single-variable/343858)

<div class="topic-metadata">

**Author:** [@NiklasZeroZero](https://forums.unrealengine.com/u/NiklasZeroZero)\
**Replies:** 2\
**Last updated:** [January 12, 2016, 7:39pm UTC](https://forums.unrealengine.com/t/how-to-make-a-clock-based-on-a-single-variable/343858 "2016-01-12T19:39:58Z")

</div>

Hi, I want to create a clock, which is based on an integer variable (if the integer 61 is the clock to show 1:01 clock) I want the integer memory and so must really completely based on this variable. Do somebody know a w…

---

## [float is still set after a false on branch](https://forums.unrealengine.com/t/float-is-still-set-after-a-false-on-branch/343576)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c44ea37c](https://forums.unrealengine.com/u/anonymous_user_c44ea37c)\
**Replies:** 4\
**Last updated:** [January 11, 2016, 4:48pm UTC](https://forums.unrealengine.com/t/float-is-still-set-after-a-false-on-branch/343576 "2016-01-11T16:48:35Z")

</div>

Hello , I have an external float curve which I get the value from in my character BP as shown below. This happens after a branch. If the branch returns false I would like the float value to remain the same, instead of f…

---

## [Spawning actor problem, but still accessable?](https://forums.unrealengine.com/t/spawning-actor-problem-but-still-accessable/343549)

<div class="topic-metadata">

**Author:** [@KingCole32](https://forums.unrealengine.com/u/KingCole32)\
**Replies:** 2\
**Last updated:** [January 9, 2016, 9:41am UTC](https://forums.unrealengine.com/t/spawning-actor-problem-but-still-accessable/343549 "2016-01-09T09:41:15Z")

</div>

I created an equipment class that I’m trying to spawn in a character’s inventory. I setup the inventory via an inventory initialize function on the character: //Initialize player equipment, check for first weapon, then …

---

## [TextBlock's Display Not Updating Real-Time When Loading Data From Save Game](https://forums.unrealengine.com/t/textblocks-display-not-updating-real-time-when-loading-data-from-save-game/338500)

<div class="topic-metadata">

**Author:** [@Ranz](https://forums.unrealengine.com/u/Ranz)\
**Replies:** 19\
**Last updated:** [January 7, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/textblocks-display-not-updating-real-time-when-loading-data-from-save-game/338500 "2016-01-07T14:27:50Z")

</div>

→ I was trying to display contents of a variable from my Save Game. → I changed the data and saved it to my Save Game and it was a success. → But the change doesn’t reflect in my TextBlock. It updates the display wh…

---

## [How do I set up a trigger inside a pawn which only detects one specific actor?](https://forums.unrealengine.com/t/how-do-i-set-up-a-trigger-inside-a-pawn-which-only-detects-one-specific-actor/342930)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ee766325](https://forums.unrealengine.com/u/anonymous_user_ee766325)\
**Replies:** 1\
**Last updated:** [January 2, 2016, 8:55pm UTC](https://forums.unrealengine.com/t/how-do-i-set-up-a-trigger-inside-a-pawn-which-only-detects-one-specific-actor/342930 "2016-01-02T20:55:30Z")

</div>

Hi, I hope somebody can help me. Sorry for my bad english. I’m making a little game for a group project. At the beginning of the game, a specific amount of actors are spawned. The Player is a Pawn, who has to hack thes…

---

## [Best way to organize, reference](https://forums.unrealengine.com/t/best-way-to-organize-reference/342462)

<div class="topic-metadata">

**Author:** [@alperenozgur](https://forums.unrealengine.com/u/alperenozgur)\
**Replies:** 1\
**Last updated:** [December 30, 2015, 6:03pm UTC](https://forums.unrealengine.com/t/best-way-to-organize-reference/342462 "2015-12-30T18:03:32Z")

</div>

hello, i want to know what is best workflow to organize unreal projects? i mean… i can only think two ways: first one is creating new project file everytime for a new “project” and other one is creating one MASTER projec…

---

## [Pointer to UObject and Inheritance in BP/C++](https://forums.unrealengine.com/t/pointer-to-uobject-and-inheritance-in-bp-c/342406)

<div class="topic-metadata">

**Author:** [@gamescodedogs](https://forums.unrealengine.com/u/gamescodedogs)\
**Replies:** 13\
**Last updated:** [December 25, 2015, 8:29pm UTC](https://forums.unrealengine.com/t/pointer-to-uobject-and-inheritance-in-bp-c/342406 "2015-12-25T20:29:47Z")

</div>

Hi, here is my WTR story (UE4 4.10.1): Make new Blueprint class, just extending Object - SINGLE & SINGLE2 Open SINGLE Blueprint, add variable TEST, type - SINGLE2 reference Create Set for TEST variable Click brows…

---

## [how do i make lives for my player](https://forums.unrealengine.com/t/how-do-i-make-lives-for-my-player/342117)

<div class="topic-metadata">

**Author:** [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Replies:** 2\
**Last updated:** [December 24, 2015, 7:06pm UTC](https://forums.unrealengine.com/t/how-do-i-make-lives-for-my-player/342117 "2015-12-24T19:06:04Z")

</div>

Im making a Sidescroller, and im trying to make a simple way of setting up lives. i have an integer variable storing the value in the player blueprint. Everything is working correctly, but whenever my player dies, the …

---

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

<div class="topic-metadata">

**Author:** [@Itorius](https://forums.unrealengine.com/u/Itorius)\
**Replies:** 2\
**Last updated:** [December 21, 2015, 8:24pm UTC](https://forums.unrealengine.com/t/inventory-system/341587 "2015-12-21T20:24:24Z")

</div>

Hello, is it possible to create a inventory where I render the background and then dynamically add slots. Each slot will have it’s number and when adding an item to the inventory just assign slot number to it to know wh…

---

## [DAMAGE VARIABLES! HELP! PLZ! RESOLVED](https://forums.unrealengine.com/t/damage-variables-help-plz-resolved/338903)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_7938dc8e1](https://forums.unrealengine.com/u/anonymous_user_7938dc8e1)\
**Replies:** 2\
**Last updated:** [December 21, 2015, 11:14am UTC](https://forums.unrealengine.com/t/damage-variables-help-plz-resolved/338903 "2015-12-21T11:14:46Z")

</div>

i am trying to make my weapon blueprint class, have a variable that is “ammount of damage” and have it effect when the player “hits” an enemy. currently, on the PLAYER CHARACTER script, there is a function called, enemy …

---

## [How to create reference to an actor that is in the world outliner](https://forums.unrealengine.com/t/how-to-create-reference-to-an-actor-that-is-in-the-world-outliner/341999)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2c124cb81](https://forums.unrealengine.com/u/anonymous_user_2c124cb81)\
**Replies:** 0\
**Last updated:** [December 20, 2015, 4:19pm UTC](https://forums.unrealengine.com/t/how-to-create-reference-to-an-actor-that-is-in-the-world-outliner/341999 "2015-12-20T16:19:59Z")

</div>

Hello, I’ve got a simple question - How to make a reference from an actor that is in the world outliner to a blueprint? (other than the level blueprint - in the level blueprint I can just drag it and drop it in the even…

---

## [Set FString Variable in function](https://forums.unrealengine.com/t/set-fstring-variable-in-function/341842)

<div class="topic-metadata">

**Author:** [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Replies:** 5\
**Last updated:** [December 19, 2015, 2:58pm UTC](https://forums.unrealengine.com/t/set-fstring-variable-in-function/341842 "2015-12-19T14:58:42Z")

</div>

Total noob here. Should be an easy one. I am fetching a json string from http, and extracting out a string identifier. This works great. I want to keep this identifier to use in a later function. I have extended \[pr…

---

## [Question about creating Static Mesh variable](https://forums.unrealengine.com/t/question-about-creating-static-mesh-variable/341804)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8147ab75](https://forums.unrealengine.com/u/anonymous_user_8147ab75)\
**Replies:** 1\
**Last updated:** [December 18, 2015, 5:55am UTC](https://forums.unrealengine.com/t/question-about-creating-static-mesh-variable/341804 "2015-12-18T05:55:01Z")

</div>

I’ve decided (after having too many problems with attempting to recreate my code in BP) that I’m going to stick with C++ coding. It’s much quicker and easier for me than the BP system for most things. However, I’m at a…

---

## [about events, delegates & parameters](https://forums.unrealengine.com/t/about-events-delegates-parameters/341719)

<div class="topic-metadata">

**Author:** [@MaxPower42](https://forums.unrealengine.com/u/MaxPower42)\
**Replies:** 4\
**Last updated:** [December 17, 2015, 10:56pm UTC](https://forums.unrealengine.com/t/about-events-delegates-parameters/341719 "2015-12-17T22:56:53Z")

</div>

Hi, I need some help with this. I don’t understand how I am supposed to use event-handlers the way I need to, if the parameters are strictly defined. I have an audio component. When it stops playing, I want to destroy t…

---

## [Passing USTRUCT() reference to Blueprint](https://forums.unrealengine.com/t/passing-ustruct-reference-to-blueprint/341611)

<div class="topic-metadata">

**Author:** [@Unteroid](https://forums.unrealengine.com/u/Unteroid)\
**Replies:** 2\
**Last updated:** [December 17, 2015, 6:39am UTC](https://forums.unrealengine.com/t/passing-ustruct-reference-to-blueprint/341611 "2015-12-17T06:39:19Z")

</div>

How can I pass USTRUCT() reference from a C++ class to it’s child blueprint? I have my USTRUCT() defined in a separate header. In my AActor c++ class header I make a forward declaration on structure struct FSymbolIn…

---

## [Is it possible to retain a variable when using the "Restart Game" blueprint function?](https://forums.unrealengine.com/t/is-it-possible-to-retain-a-variable-when-using-the-restart-game-blueprint-function/341563)

<div class="topic-metadata">

**Author:** [@ThatJoeThom](https://forums.unrealengine.com/u/ThatJoeThom)\
**Replies:** 2\
**Last updated:** [December 16, 2015, 1:07am UTC](https://forums.unrealengine.com/t/is-it-possible-to-retain-a-variable-when-using-the-restart-game-blueprint-function/341563 "2015-12-16T01:07:29Z")

</div>

I am trying to create a local leaderboard for my game which only needs to be saved during a single session i.e. it doesn’t have to be recalled if the game is closed and opened again. The easiest way that I’ve found to r…

---

## [Saving What I Want in Blueprint](https://forums.unrealengine.com/t/saving-what-i-want-in-blueprint/341508)

<div class="topic-metadata">

**Author:** [@Crocsx343](https://forums.unrealengine.com/u/Crocsx343)\
**Replies:** 0\
**Last updated:** [December 15, 2015, 10:02am UTC](https://forums.unrealengine.com/t/saving-what-i-want-in-blueprint/341508 "2015-12-15T10:02:41Z")

</div>

Hi ! I’m a bit newby in making games and got a question about saving in Unreal using Blueprint. I looked at tutorials etc and i understand how the system works. But I have a question because tutorials show how to but n…

---

## [Structs cannot be declared in their own file(s)](https://forums.unrealengine.com/t/structs-cannot-be-declared-in-their-own-file-s/341492)

<div class="topic-metadata">

**Author:** [@vikhik](https://forums.unrealengine.com/u/vikhik)\
**Replies:** 1\
**Last updated:** [December 15, 2015, 5:29am UTC](https://forums.unrealengine.com/t/structs-cannot-be-declared-in-their-own-file-s/341492 "2015-12-15T05:29:42Z")

</div>

\#The bug Create a blank file (I used /Game/Public/Structs/MyStruct.h) Add the following code #pragma once include “Object.h” USTRUCT() struct FMyStruct { GENERATED\_USTRUCT\_BODY() }; Compile You will ge…

---

## [CreateSaveGameObject Question](https://forums.unrealengine.com/t/createsavegameobject-question/341092)

<div class="topic-metadata">

**Author:** [@nmm131](https://forums.unrealengine.com/u/nmm131)\
**Replies:** 24\
**Last updated:** [December 13, 2015, 4:50pm UTC](https://forums.unrealengine.com/t/createsavegameobject-question/341092 "2015-12-13T16:50:10Z")

</div>

I am creating a save game object as class name “Blueprint”.and casting it to “Blueprint”. I then connect it to a SaveGameToSlot node with the save name “save” How is this viewable inside “Blueprint”? i.e. I want to st…

---

## [Inventory system with UMG](https://forums.unrealengine.com/t/inventory-system-with-umg/341191)

<div class="topic-metadata">

**Author:** [@Revelage](https://forums.unrealengine.com/u/Revelage)\
**Replies:** 2\
**Last updated:** [December 11, 2015, 7:49pm UTC](https://forums.unrealengine.com/t/inventory-system-with-umg/341191 "2015-12-11T19:49:54Z")

</div>

anyone know a tutorial to how to create an inventory system with UMG blueprint or can explain me in a “few words”? a basic/simple concept of inventory system, with add item, create slot, ecc.ecc. thanks.

---

## [Working with SaveGame Blueprint, How do I store variable to Save (Slot)?](https://forums.unrealengine.com/t/working-with-savegame-blueprint-how-do-i-store-variable-to-save-slot/341094)

<div class="topic-metadata">

**Author:** [@nmm131](https://forums.unrealengine.com/u/nmm131)\
**Replies:** 11\
**Last updated:** [December 11, 2015, 4:43pm UTC](https://forums.unrealengine.com/t/working-with-savegame-blueprint-how-do-i-store-variable-to-save-slot/341094 "2015-12-11T16:43:22Z")

</div>

I have a variable set next to my SaveGameToSlot but how do I actually save this variable information along with the specific save slot? I am loading my game but no data is being retrieved, no variable is being saved. I …

---

## [How to Get Struct into A New Blueprint](https://forums.unrealengine.com/t/how-to-get-struct-into-a-new-blueprint/341000)

<div class="topic-metadata">

**Author:** [@nmm131](https://forums.unrealengine.com/u/nmm131)\
**Replies:** 29\
**Last updated:** [December 11, 2015, 3:21am UTC](https://forums.unrealengine.com/t/how-to-get-struct-into-a-new-blueprint/341000 "2015-12-11T03:21:44Z")

</div>

I have a struct I attached a struct ref to a SetMembersInStruct node. Struct Out creates a “reference to the input struct”, I would like to bring this reference to a new blueprint.The reference output of struct will no…

---

## [How Can I Update Emitter Location?](https://forums.unrealengine.com/t/how-can-i-update-emitter-location/340865)

<div class="topic-metadata">

**Author:** [@nmm131](https://forums.unrealengine.com/u/nmm131)\
**Replies:** 1\
**Last updated:** [December 8, 2015, 9:37pm UTC](https://forums.unrealengine.com/t/how-can-i-update-emitter-location/340865 "2015-12-08T21:37:51Z")

</div>

I spawned an emitter using blueprints (inside my level blueprint). I need help updating its location…I do not know how to get a reference of the emitter nor do I know how to locate all spawned emitters using blueprints.…

---

## [Need help triggering an event!!!](https://forums.unrealengine.com/t/need-help-triggering-an-event/340773)

<div class="topic-metadata">

**Author:** [@nmm131](https://forums.unrealengine.com/u/nmm131)\
**Replies:** 5\
**Last updated:** [December 8, 2015, 8:44pm UTC](https://forums.unrealengine.com/t/need-help-triggering-an-event/340773 "2015-12-08T20:44:32Z")

</div>

I have an actor blueprint and a character blueprint that have nodes in them. I would like to attach one more node to trigger an event, so that I can put this event in my level blueprint and run some code from that event…

---

## [How can I print Array's Indexed integer value?](https://forums.unrealengine.com/t/how-can-i-print-arrays-indexed-integer-value/340808)

<div class="topic-metadata">

**Author:** [@nmm131](https://forums.unrealengine.com/u/nmm131)\
**Replies:** 1\
**Last updated:** [December 8, 2015, 9:03am UTC](https://forums.unrealengine.com/t/how-can-i-print-arrays-indexed-integer-value/340808 "2015-12-08T09:03:32Z")

</div>

How can I print an integer that is stored in an array when I only have the index?

---

## [How to print string a SaveGame class' variable?](https://forums.unrealengine.com/t/how-to-print-string-a-savegame-class-variable/331051)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_16646928](https://forums.unrealengine.com/u/anonymous_user_16646928)\
**Replies:** 1\
**Last updated:** [December 5, 2015, 10:02pm UTC](https://forums.unrealengine.com/t/how-to-print-string-a-savegame-class-variable/331051 "2015-12-05T22:02:21Z")

</div>

I’m trying to read a variable from my SaveGame blueprint (BP\_SaveGame) which is an integer(Var1). Trying to use Print String node to read it and when played, it passed through but only shows ‘0’ which is not the default …

---

## [How do I call outputs when I want them?](https://forums.unrealengine.com/t/how-do-i-call-outputs-when-i-want-them/340589)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8265f85e](https://forums.unrealengine.com/u/anonymous_user_8265f85e)\
**Replies:** 1\
**Last updated:** [December 5, 2015, 3:52pm UTC](https://forums.unrealengine.com/t/how-do-i-call-outputs-when-i-want-them/340589 "2015-12-05T15:52:50Z")

</div>

Hi there! So what I’m making is an intractable safe. When a number is clicked on the safe keypad it sets the material to a material with a number on relating to whatever number is clicked. I have 4 blueprint meshes repre…

---

## [Problem with casting](https://forums.unrealengine.com/t/problem-with-casting/340435)

<div class="topic-metadata">

**Author:** [@tendo23](https://forums.unrealengine.com/u/tendo23)\
**Replies:** 3\
**Last updated:** [December 3, 2015, 10:50pm UTC](https://forums.unrealengine.com/t/problem-with-casting/340435 "2015-12-03T22:50:50Z")

</div>

Ok so I feel stupid after trying so long with no success, I just don’t get casting. This whole problem came up because I’m trying to make an inventory. So let’s say I’m trying to cast to Apple. Though whenever I want to …

---

## [FMath::InterpSinInOut outputs invalid results for differing values of A and B](https://forums.unrealengine.com/t/fmath-interpsininout-outputs-invalid-results-for-differing-values-of-a-and-b/326978)

<div class="topic-metadata">

**Author:** [@Kory](https://forums.unrealengine.com/u/Kory)\
**Replies:** 3\
**Last updated:** [December 2, 2015, 2:19am UTC](https://forums.unrealengine.com/t/fmath-interpsininout-outputs-invalid-results-for-differing-values-of-a-and-b/326978 "2015-12-02T02:19:09Z")

</div>

I’ve been wondering why FMath::InterpSinInOut wasn’t working in my use case so I decided to explore some more and ended up writing a quick test program to play around with it to output valid results. Here are my finding…

---

## [Stack Intem on Inventory](https://forums.unrealengine.com/t/stack-intem-on-inventory/340251)

<div class="topic-metadata">

**Author:** [@issomsm](https://forums.unrealengine.com/u/issomsm)\
**Replies:** 0\
**Last updated:** [December 1, 2015, 8:45pm UTC](https://forums.unrealengine.com/t/stack-intem-on-inventory/340251 "2015-12-01T20:45:06Z")

</div>

Hi, I was following his tutorial for make a invetory it works fine, but now i want stack some items, like when i got the wood i want stack the item. Any Help ?

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

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