# UDK Programming and UnrealScript

**URL:** https://forums.unrealengine.com/c/legacy-tools-unreal-engine-3-udk/udk-programming-and-unrealscript/71.md?page=26

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

**Page:** 27

---

## [Updating StaticMesh on StaticMeshComponent and updating materials to new mesh](https://forums.unrealengine.com/t/updating-staticmesh-on-staticmeshcomponent-and-updating-materials-to-new-mesh/88684)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 3\
**Last updated:** [March 29, 2017, 9:27am UTC](https://forums.unrealengine.com/t/updating-staticmesh-on-staticmeshcomponent-and-updating-materials-to-new-mesh/88684 "2017-03-29T09:27:39Z")

</div>

I have Actors that I use as building blocks in my game which each have a static mesh component. Each time I initialize one of these actors, I replace the static mesh materials with MaterialInstanceConstant’s (this is so…

---

## [Lookup table + Scene Capture 2d?](https://forums.unrealengine.com/t/lookup-table-scene-capture-2d/88342)

<div class="topic-metadata">

**Author:** [@O\_and\_N](https://forums.unrealengine.com/u/O_and_N)\
**Replies:** 6\
**Last updated:** [March 24, 2017, 5:43pm UTC](https://forums.unrealengine.com/t/lookup-table-scene-capture-2d/88342 "2017-03-24T17:43:59Z")

</div>

So we know that in the world info we have the option to plug in a color grading lookup table texture but i was wandering if it is posible to implement this feature in the properties of the scene capture 2d actor?By defau…

---

## [How do I send a newline character to GFxMovie?](https://forums.unrealengine.com/t/how-do-i-send-a-newline-character-to-gfxmovie/87482)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 3\
**Last updated:** [March 14, 2017, 9:30am UTC](https://forums.unrealengine.com/t/how-do-i-send-a-newline-character-to-gfxmovie/87482 "2017-03-14T09:30:32Z")

</div>

I can’t seem to ask this question. Is the forum broken? Does it not like the characters I’m entering? Does it think I’m trying to do some kind of code insertion? Will it let me ask my question if I put it here as a p…

---

## [How to get SoundCue duration when using several waves?](https://forums.unrealengine.com/t/how-to-get-soundcue-duration-when-using-several-waves/87331)

<div class="topic-metadata">

**Author:** [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Replies:** 9\
**Last updated:** [March 13, 2017, 4:57pm UTC](https://forums.unrealengine.com/t/how-to-get-soundcue-duration-when-using-several-waves/87331 "2017-03-13T16:57:19Z")

</div>

I can’t find a way to get the duration of an SoundCue that contains several SoundNodeWave with different durations, to play random. Using “soundcue.getcueduration()” always returns the same value, the duration of one of …

---

## [PlaySound in MobileMenuScene](https://forums.unrealengine.com/t/playsound-in-mobilemenuscene/87452)

<div class="topic-metadata">

**Author:** [@BeerFury](https://forums.unrealengine.com/u/BeerFury)\
**Replies:** 0\
**Last updated:** [March 12, 2017, 6:16pm UTC](https://forums.unrealengine.com/t/playsound-in-mobilemenuscene/87452 "2017-03-12T18:16:34Z")

</div>

Hi guys, I noticed that I can not call the PlaySound function within a MobileMenuScene, because itn’t inherited from Object but from Actor. Ok, I can do it or recall it from PlayerController or GameInfo. So I wonder: …

---

## [UnrealScript Compiler Source Code Availability?](https://forums.unrealengine.com/t/unrealscript-compiler-source-code-availability/87167)

<div class="topic-metadata">

**Author:** [@Huperniketes](https://forums.unrealengine.com/u/Huperniketes)\
**Replies:** 1\
**Last updated:** [March 9, 2017, 6:03am UTC](https://forums.unrealengine.com/t/unrealscript-compiler-source-code-availability/87167 "2017-03-09T06:03:05Z")

</div>

Greetings, Since UnrealScript has been removed from the UE4 system, and probably no longer of strategic value, is it possible to get the source code to the bytecode compiler? I’d like to reference, or possibly modify it…

---

## [Set ambient Audio to DynamicSMActor](https://forums.unrealengine.com/t/set-ambient-audio-to-dynamicsmactor/87040)

<div class="topic-metadata">

**Author:** [@BeerFury](https://forums.unrealengine.com/u/BeerFury)\
**Replies:** 2\
**Last updated:** [March 8, 2017, 10:47pm UTC](https://forums.unrealengine.com/t/set-ambient-audio-to-dynamicsmactor/87040 "2017-03-08T22:47:05Z")

</div>

It’s possible set an ambient sound to an dynamicSMActor through unrealscript inside the actor’s default properties?

---

## [Can't save \[map\_name\]: Graph is linked to external private object.](https://forums.unrealengine.com/t/cant-save-map_name-graph-is-linked-to-external-private-object/87014)

<div class="topic-metadata">

**Author:** [@Avatarus](https://forums.unrealengine.com/u/Avatarus)\
**Replies:** 2\
**Last updated:** [March 7, 2017, 5:04pm UTC](https://forums.unrealengine.com/t/cant-save-map_name-graph-is-linked-to-external-private-object/87014 "2017-03-07T17:04:42Z")

</div>

I’m making skybox generator that spawns skybox, clouds, sun, fog volume etc. right in the editor. It’s based on BrushBuilder class, but instead of changing shape of the builder brush, it spawns all this stuff. So, I was …

---

## [UDK Kismet Integer Problem](https://forums.unrealengine.com/t/udk-kismet-integer-problem/86962)

<div class="topic-metadata">

**Author:** [@anon94163408](https://forums.unrealengine.com/u/anon94163408)\
**Replies:** 1\
**Last updated:** [March 6, 2017, 11:24pm UTC](https://forums.unrealengine.com/t/udk-kismet-integer-problem/86962 "2017-03-06T23:24:49Z")

</div>

So it took me awhile but I finally found a way to make a destructible score system for my game! But, I just ran into another problem : o As you can see in the kismet code I use ApexDestructibleActor Touch function to mo…

---

## [Apply noise to control 'patchiness' to foliage](https://forums.unrealengine.com/t/apply-noise-to-control-patchiness-to-foliage/86385)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 8\
**Last updated:** [March 6, 2017, 9:39am UTC](https://forums.unrealengine.com/t/apply-noise-to-control-patchiness-to-foliage/86385 "2017-03-06T09:39:03Z")

</div>

The foliage on my map can look a bit flat, due to the static materials being used. I’d like to apply a noise texture to control the color desaturation based on object position. So that the grass would change it’s color …

---

## [How do I change the sound volume of a SoundClass in code?](https://forums.unrealengine.com/t/how-do-i-change-the-sound-volume-of-a-soundclass-in-code/86856)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 2\
**Last updated:** [March 6, 2017, 9:33am UTC](https://forums.unrealengine.com/t/how-do-i-change-the-sound-volume-of-a-soundclass-in-code/86856 "2017-03-06T09:33:53Z")

</div>

I have a Master SoundClass and its children are Music, Environment, UI, and SFx. I’d like to change their volume in code but I’m not sure where to begin. I tried this… exec function SetMasterVolume(float NewVolume) {…

---

## [Legacy forum posts have been removed?](https://forums.unrealengine.com/t/legacy-forum-posts-have-been-removed/86825)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 3\
**Last updated:** [March 5, 2017, 11:07pm UTC](https://forums.unrealengine.com/t/legacy-forum-posts-have-been-removed/86825 "2017-03-05T23:07:39Z")

</div>

The old UDK forum was ported over to these forums, at this link: UDK Programming and Unrealscript - Epic Games Forums I regularly use it for research. However the link now goes no-where… @Epic, do these forum thre…

---

## [Access to the actor list](https://forums.unrealengine.com/t/access-to-the-actor-list/86736)

<div class="topic-metadata">

**Author:** [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Replies:** 3\
**Last updated:** [March 5, 2017, 12:22pm UTC](https://forums.unrealengine.com/t/access-to-the-actor-list/86736 "2017-03-05T12:22:50Z")

</div>

I want to make a function to check the actors in the level but only some of them in each tick, to destroy / created based in the distance to the player. There are any way to check the actors without using the foreach co…

---

## [How to add aim-down-sights sway](https://forums.unrealengine.com/t/how-to-add-aim-down-sights-sway/86823)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 1\
**Last updated:** [March 5, 2017, 10:13am UTC](https://forums.unrealengine.com/t/how-to-add-aim-down-sights-sway/86823 "2017-03-05T10:13:56Z")

</div>

Currently my aim-down-sights doesn’t add any movement, so providing the player’s mouse is still, there is little challenge to getting a precise aim. I’d like to add a subtle sway to the aim, so the player has to time th…

---

## [Play sound without it being localized to an actor location?](https://forums.unrealengine.com/t/play-sound-without-it-being-localized-to-an-actor-location/86833)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 1\
**Last updated:** [March 5, 2017, 10:07am UTC](https://forums.unrealengine.com/t/play-sound-without-it-being-localized-to-an-actor-location/86833 "2017-03-05T10:07:55Z")

</div>

Everytime I want to play a sound for the player, I end up using the player pawn to play the sound. Is there a way to just play the sound without having it localized to a specific pawn location? Say some music, that I w…

---

## [Code7 Server](https://forums.unrealengine.com/t/code7-server/86758)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0878a78c](https://forums.unrealengine.com/u/anonymous_user_0878a78c)\
**Replies:** 0\
**Last updated:** [March 3, 2017, 10:28pm UTC](https://forums.unrealengine.com/t/code7-server/86758 "2017-03-03T22:28:54Z")

</div>

Log: bChannelServerEnabled == true Log: Set login Address: \[10.0.0.7:28004\] Log: Initializing Engine Completed DevMovie: Starting memory preloaded movie...StartGame () DevMovie: Playing movie \[StartGame\] DevMovie: Chann…

---

## [10kbps bandwdith cap](https://forums.unrealengine.com/t/10kbps-bandwdith-cap/86301)

<div class="topic-metadata">

**Author:** [@ShrewdTactician](https://forums.unrealengine.com/u/ShrewdTactician)\
**Replies:** 1\
**Last updated:** [February 28, 2017, 2:48am UTC](https://forums.unrealengine.com/t/10kbps-bandwdith-cap/86301 "2017-02-28T02:48:39Z")

</div>

Hi there, I’m working with a project that is using the udk-2015-01 package (the last one afaik). And we’re having trouble getting past the 10kbps per client limit. Before I get to into it, the first question is, is it …

---

## [Scaleform: Possible to SetExternalTexture() on a shared texture?](https://forums.unrealengine.com/t/scaleform-possible-to-setexternaltexture-on-a-shared-texture/86240)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 0\
**Last updated:** [February 26, 2017, 2:08pm UTC](https://forums.unrealengine.com/t/scaleform-possible-to-setexternaltexture-on-a-shared-texture/86240 "2017-02-26T14:08:57Z")

</div>

I’ve been able to save a lot of space (and time when I reimport GFx movie files) by sharing resources. I’m wondering if anyone has been able to use SetExternalTexture to swap a texture at runtime, but use it on a shared…

---

## [Prevent a crowd agent from dying.](https://forums.unrealengine.com/t/prevent-a-crowd-agent-from-dying/79900)

<div class="topic-metadata">

**Author:** [@O\_and\_N](https://forums.unrealengine.com/u/O_and_N)\
**Replies:** 0\
**Last updated:** [December 5, 2016, 5:24pm UTC](https://forums.unrealengine.com/t/prevent-a-crowd-agent-from-dying/79900 "2016-12-05T17:24:30Z")

</div>

I have a few zombie crowd agents and a dynamic game crowd destination attached to my player so that they can chace me. Lets say im in a 90º corridor.The moment i turn at the corner those guys will try to follow me but i…

---

## [Controlling sound from code:  start, stop, rewind, loop, set start position dynamically?](https://forums.unrealengine.com/t/controlling-sound-from-code-start-stop-rewind-loop-set-start-position-dynamically/85595)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 4\
**Last updated:** [February 19, 2017, 12:31pm UTC](https://forums.unrealengine.com/t/controlling-sound-from-code-start-stop-rewind-loop-set-start-position-dynamically/85595 "2017-02-19T12:31:57Z")

</div>

I’m taking a look at some explanations of sound in UDK, and I haven’t figured out a way to do this yet without digging into native code. Can I create a sound instance the way I might create a material instance, and then…

---

## [Set material to mesh's LOD](https://forums.unrealengine.com/t/set-material-to-meshs-lod/85451)

<div class="topic-metadata">

**Author:** [@Avatarus](https://forums.unrealengine.com/u/Avatarus)\
**Replies:** 3\
**Last updated:** [February 18, 2017, 1:13pm UTC](https://forums.unrealengine.com/t/set-material-to-meshs-lod/85451 "2017-02-18T13:13:56Z")

</div>

Looking for a way to set material to specific LOD of static mesh with the script. The thing is that material I’ve created for foliage actors uses several static switches to control animation. They become disabled in mate…

---

## [Hitmask for Characters Wound](https://forums.unrealengine.com/t/hitmask-for-characters-wound/83496)

<div class="topic-metadata">

**Author:** [@NIDAL\_NIJM\_GAMES](https://forums.unrealengine.com/u/NIDAL_NIJM_GAMES)\
**Replies:** 13\
**Last updated:** [February 11, 2017, 5:40pm UTC](https://forums.unrealengine.com/t/hitmask-for-characters-wound/83496 "2017-02-11T17:40:42Z")

</div>

Hello friends. Does anyone know about some tutorial on how to use Hitmask for creating decal effects on the body of the character (blood wound) after the character is shot? I only found these 2 small tutorials on UDN, …

---

## [Anyone slightly experienced with Scaleform/AS still around? (one last bug to fix with udkfrontend)](https://forums.unrealengine.com/t/anyone-slightly-experienced-with-scaleform-as-still-around-one-last-bug-to-fix-with-udkfrontend/83806)

<div class="topic-metadata">

**Author:** [@ciox](https://forums.unrealengine.com/u/ciox)\
**Replies:** 3\
**Last updated:** [February 6, 2017, 6:58am UTC](https://forums.unrealengine.com/t/anyone-slightly-experienced-with-scaleform-as-still-around-one-last-bug-to-fix-with-udkfrontend/83806 "2017-02-06T06:58:35Z")

</div>

The bug has to do with using a scrolling list in a settings view (filled with menu\_item\_setting items), with more than 7 items, the option steppers will not be updated correctly when the list scrolls, only the option nam…

---

## [Hide bone through Kismet](https://forums.unrealengine.com/t/hide-bone-through-kismet/83008)

<div class="topic-metadata">

**Author:** [@CeeJay\_21](https://forums.unrealengine.com/u/CeeJay_21)\
**Replies:** 32\
**Last updated:** [January 31, 2017, 11:01pm UTC](https://forums.unrealengine.com/t/hide-bone-through-kismet/83008 "2017-01-31T23:01:35Z")

</div>

I’m working on a UDK project and need to hide a skel mesh bone through a kismet node. I wrote a custom node for it but I get an error when calling the function. The code for the node is the following: /\*\* \* This kismet…

---

## [Unreal UI effect needed](https://forums.unrealengine.com/t/unreal-ui-effect-needed/83636)

<div class="topic-metadata">

**Author:** [@SteamLabs\_Inc](https://forums.unrealengine.com/u/SteamLabs_Inc)\
**Replies:** 0\
**Last updated:** [January 25, 2017, 5:59pm UTC](https://forums.unrealengine.com/t/unreal-ui-effect-needed/83636 "2017-01-25T17:59:41Z")

</div>

First time on the forums. Our studio is seeking an experienced programmer with Unreal UI on casual game fx. Sparkles, buton highlights, simple sound effects. Basic stuff on a simple casual game project we have coming up …

---

## [Project is losing sound when minimized/losing focus.](https://forums.unrealengine.com/t/project-is-losing-sound-when-minimized-losing-focus/83477)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d50c2a4d](https://forums.unrealengine.com/u/anonymous_user_d50c2a4d)\
**Replies:** 0\
**Last updated:** [January 23, 2017, 12:39pm UTC](https://forums.unrealengine.com/t/project-is-losing-sound-when-minimized-losing-focus/83477 "2017-01-23T12:39:51Z")

</div>

Hello everyone, I’ve a UDK/UE3 project, when I run the project. If I minimize or lose focus of the window. The game sound get’s cut off. I know there’s a few fixes in UE4 for this by changing the Engine.ini and adding …

---

## [How to spawn navmeshes](https://forums.unrealengine.com/t/how-to-spawn-navmeshes/83440)

<div class="topic-metadata">

**Author:** [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Replies:** 1\
**Last updated:** [January 23, 2017, 10:52am UTC](https://forums.unrealengine.com/t/how-to-spawn-navmeshes/83440 "2017-01-23T10:52:47Z")

</div>

So I’m kinda tired of my custom pathfinder exploding all the time so I decided to go ahead and try this once again: spawning nav meshes on the fly so far it… kinda works :o :wink: here’s how it goes so far: made a cl…

---

## [Retrofitting GFxUDKFrontEnd -- issues with mouse focus](https://forums.unrealengine.com/t/retrofitting-gfxudkfrontend-issues-with-mouse-focus/83100)

<div class="topic-metadata">

**Author:** [@ciox](https://forums.unrealengine.com/u/ciox)\
**Replies:** 9\
**Last updated:** [January 22, 2017, 10:10pm UTC](https://forums.unrealengine.com/t/retrofitting-gfxudkfrontend-issues-with-mouse-focus/83100 "2017-01-22T22:10:31Z")

</div>

So I’m trying to get my game out a little faster with all the “sunsetting” going on and decided to give a shot at quickly retrofitting and reskinning GFxUDKFrontEnd instead of making a UI system from scratch. I started …

---

## [creating a basic save system with a kismet variable](https://forums.unrealengine.com/t/creating-a-basic-save-system-with-a-kismet-variable/82244)

<div class="topic-metadata">

**Author:** [@franktd](https://forums.unrealengine.com/u/franktd)\
**Replies:** 3\
**Last updated:** [January 15, 2017, 4:01pm UTC](https://forums.unrealengine.com/t/creating-a-basic-save-system-with-a-kismet-variable/82244 "2017-01-15T16:01:39Z")

</div>

Hi, I am really really not good at programming, but I am working to finish a project(Witch I wrote program only 10% of the thing) And it miss a save system. Since I dont know where to start and the tutorial I find seem …

---

## [AI - melee weapons issue](https://forums.unrealengine.com/t/ai-melee-weapons-issue/82471)

<div class="topic-metadata">

**Author:** [@TKBS](https://forums.unrealengine.com/u/TKBS)\
**Replies:** 11\
**Last updated:** [January 13, 2017, 9:59pm UTC](https://forums.unrealengine.com/t/ai-melee-weapons-issue/82471 "2017-01-13T21:59:03Z")

</div>

AI have issues with melee weapons. They stand there doing nothing, on closer inspection the weapon switch audio can be heard, constantly looping. Tried searching for a working example and was unable find one. I found …

[Previous page](https://forums.unrealengine.com/c/legacy-tools-unreal-engine-3-udk/udk-programming-and-unrealscript/71.md?page=25)

[Next page](https://forums.unrealengine.com/c/legacy-tools-unreal-engine-3-udk/udk-programming-and-unrealscript/71.md?page=27)
