# UDK Programming and UnrealScript

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

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

**Page:** 16

---

## [Movable Decals help.](https://forums.unrealengine.com/t/movable-decals-help/130431)

<div class="topic-metadata">

**Author:** [@Neongho](https://forums.unrealengine.com/u/Neongho)\
**Replies:** 3\
**Last updated:** [August 30, 2019, 1:51pm UTC](https://forums.unrealengine.com/t/movable-decals-help/130431 "2019-08-30T13:51:08Z")

</div>

So I got somehow some movable decals but the thing is that I’d like to have decals moving instead of instancing them and detaching them all the time it’s annoying though it looks good. Code here they are called in postb…

---

## [Rebinding keys in-game (thanks Chosker!)](https://forums.unrealengine.com/t/rebinding-keys-in-game-thanks-chosker/130429)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 1\
**Last updated:** [August 29, 2019, 7:18am UTC](https://forums.unrealengine.com/t/rebinding-keys-in-game-thanks-chosker/130429 "2019-08-29T07:18:23Z")

</div>

I’m not much of a UI designer, but I can get the job done. I’ve had a lot of players asking if they can rebind keys. Some people use AZERTY keyboards. Some find the camera movement…

---

## [Particle instance parameters](https://forums.unrealengine.com/t/particle-instance-parameters/130386)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [August 28, 2019, 2:09pm UTC](https://forums.unrealengine.com/t/particle-instance-parameters/130386 "2019-08-28T14:09:04Z")

</div>

I’m trying to control some of my particle emitter params via unrealscript. UDK has some support for this: UDK | UsingInstanceParameters However it seems it can only be used on a couple of emitter modules… I want to add…

---

## [Scale light and mesh with relative position?](https://forums.unrealengine.com/t/scale-light-and-mesh-with-relative-position/221364)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1cfd2d89](https://forums.unrealengine.com/u/anonymous_user_1cfd2d89)\
**Replies:** 0\
**Last updated:** [August 27, 2019, 7:28pm UTC](https://forums.unrealengine.com/t/scale-light-and-mesh-with-relative-position/221364 "2019-08-27T19:28:21Z")

</div>

Say you have a mesh of a cube, and you put a light on the corner. How would you go about scaling this 50% in size, while keeping the light on the corner? When I use the scale tool, position of the mesh adjusts toward t…

---

## [Toggle individual emitters in a particle system?](https://forums.unrealengine.com/t/toggle-individual-emitters-in-a-particle-system/130261)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 1\
**Last updated:** [August 24, 2019, 7:21pm UTC](https://forums.unrealengine.com/t/toggle-individual-emitters-in-a-particle-system/130261 "2019-08-24T19:21:11Z")

</div>

Is there a way to toggle individual particle emitters in a particle system via unrealscript?

---

## [Level streaming](https://forums.unrealengine.com/t/level-streaming/129835)

<div class="topic-metadata">

**Author:** [@Neongho](https://forums.unrealengine.com/u/Neongho)\
**Replies:** 3\
**Last updated:** [August 13, 2019, 6:05am UTC](https://forums.unrealengine.com/t/level-streaming/129835 "2019-08-13T06:05:51Z")

</div>

I understand for level streaming when another, for example, static mesh appears depends on the position you are, how to do it in UDK for example with another landscape connected to another landscape?

---

## [Texture not loading fully when using SetTextureParameterValue() on mat inst const](https://forums.unrealengine.com/t/texture-not-loading-fully-when-using-settextureparametervalue-on-mat-inst-const/129420)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 6\
**Last updated:** [August 10, 2019, 6:44am UTC](https://forums.unrealengine.com/t/texture-not-loading-fully-when-using-settextureparametervalue-on-mat-inst-const/129420 "2019-08-10T06:44:17Z")

</div>

I’m updating a mat inst const (that i’m using with my foliage) with a new texture during gameplay. For some reason the texture stays at the lowest detail and doesn’t full load in. If i’m standing in an area of the map w…

---

## [Help with custom pawn animations playback](https://forums.unrealengine.com/t/help-with-custom-pawn-animations-playback/129469)

<div class="topic-metadata">

**Author:** [@NIDAL\_NIJM\_GAMES](https://forums.unrealengine.com/u/NIDAL_NIJM_GAMES)\
**Replies:** 2\
**Last updated:** [August 3, 2019, 11:42am UTC](https://forums.unrealengine.com/t/help-with-custom-pawn-animations-playback/129469 "2019-08-03T11:42:41Z")

</div>

Hello guys!!! I need a small help with unreal scripting. The enemies in my game have custom animations for hit damage, like hit left leg, hit right arm, and so on. I trigger these animations in my Pawn’s code on the t…

---

## [Playstation controls?](https://forums.unrealengine.com/t/playstation-controls/129068)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1cfd2d89](https://forums.unrealengine.com/u/anonymous_user_1cfd2d89)\
**Replies:** 8\
**Last updated:** [July 24, 2019, 1:39pm UTC](https://forums.unrealengine.com/t/playstation-controls/129068 "2019-07-24T13:39:30Z")

</div>

Seems like this would surely be talked about somewhere, but I can’t find anything. How do you setup UDK games to work with playstation controllers?

---

## [Material based water movement/displacement?](https://forums.unrealengine.com/t/material-based-water-movement-displacement/128902)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 6:45pm UTC](https://forums.unrealengine.com/t/material-based-water-movement-displacement/128902 "2019-07-19T18:45:28Z")

</div>

I’d like to create a material for water that uses displacement to create a ripple/wave fx (without relying on vertices). I see various example materials that cause the entire water material to move up and down, but not …

---

## [UDK Game audio stops when the game window loses focus](https://forums.unrealengine.com/t/udk-game-audio-stops-when-the-game-window-loses-focus/128903)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1cfd2d89](https://forums.unrealengine.com/u/anonymous_user_1cfd2d89)\
**Replies:** 0\
**Last updated:** [July 19, 2019, 12:25am UTC](https://forums.unrealengine.com/t/udk-game-audio-stops-when-the-game-window-loses-focus/128903 "2019-07-19T00:25:33Z")

</div>

Can you control whether or not a UDK Game mutes when the game window loses focus? I’m digging around the engine files to see. There is a function+variable for whether the game pauses or not: /\*\* Tells whether the ga…

---

## [Using texture atlases](https://forums.unrealengine.com/t/using-texture-atlases/128465)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 1\
**Last updated:** [July 8, 2019, 6:33pm UTC](https://forums.unrealengine.com/t/using-texture-atlases/128465 "2019-07-08T18:33:42Z")

</div>

I’ve read before on the UDN on how to use texture atlases to reduce the number of textures needed in a material. However I can’t seem to find it at all in the docs now (especially seeing as the search is broken). Does a…

---

## [android arm64 build error.](https://forums.unrealengine.com/t/android-arm64-build-error/128442)

<div class="topic-metadata">

**Author:** [@miyoung0831](https://forums.unrealengine.com/u/miyoung0831)\
**Replies:** 0\
**Last updated:** [July 8, 2019, 1:20am UTC](https://forums.unrealengine.com/t/android-arm64-build-error/128442 "2019-07-08T01:20:57Z")

</div>

An error occurs when attempting to build android arm64. physx, scaleform gfx library is 32bit… Is there a way to get the library for the arm64 build of Android ? d:/android/android-ndk-r10e/toolchains/aarch64-linux-and…

---

## [Material gradient mask on bottom of mesh](https://forums.unrealengine.com/t/material-gradient-mask-on-bottom-of-mesh/128251)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 10\
**Last updated:** [July 6, 2019, 3:32pm UTC](https://forums.unrealengine.com/t/material-gradient-mask-on-bottom-of-mesh/128251 "2019-07-06T15:32:20Z")

</div>

I’m trying to add a snow material at the base of the trunks of trees. The bark material is tiled, however I only want the snow buildup to show at the bottom of the mesh. Does anyone know how to do this?

---

## [Is Unity good for 3d games?](https://forums.unrealengine.com/t/is-unity-good-for-3d-games/126424)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_045df4d6](https://forums.unrealengine.com/u/anonymous_user_045df4d6)\
**Replies:** 4\
**Last updated:** [July 6, 2019, 5:20am UTC](https://forums.unrealengine.com/t/is-unity-good-for-3d-games/126424 "2019-07-06T05:20:05Z")

</div>

I am looking to try to build a 3d game with the help of unity. So is it good or I can go with the unreal engine to make a game?

---

## [Sprite stops rendering if center point is visually blocked](https://forums.unrealengine.com/t/sprite-stops-rendering-if-center-point-is-visually-blocked/128162)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 4\
**Last updated:** [July 4, 2019, 3:23pm UTC](https://forums.unrealengine.com/t/sprite-stops-rendering-if-center-point-is-visually-blocked/128162 "2019-07-04T15:23:22Z")

</div>

I’m using a sprite for a moon in the sky. It’s the first time i’ve used sprites and i’m noticing that if the center point of the sprite is blocked (like from a branch of a tree) the whole sprite stops rendering. Anyone …

---

## [Problem with Material Instance normal map parameter](https://forums.unrealengine.com/t/problem-with-material-instance-normal-map-parameter/128305)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 4\
**Last updated:** [July 4, 2019, 3:06am UTC](https://forums.unrealengine.com/t/problem-with-material-instance-normal-map-parameter/128305 "2019-07-04T03:06:24Z")

</div>

I’m having an issue whereby when using a material instance constant of a base material, I’m seeing very different results compared to a standard material using exactly the same texture inputs: https://content.screencast…

---

## [Setting a material instance constant for a static mesh material causes warning in logs](https://forums.unrealengine.com/t/setting-a-material-instance-constant-for-a-static-mesh-material-causes-warning-in-logs/128164)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 10\
**Last updated:** [July 3, 2019, 5:31pm UTC](https://forums.unrealengine.com/t/setting-a-material-instance-constant-for-a-static-mesh-material-causes-warning-in-logs/128164 "2019-07-03T17:31:37Z")

</div>

On map load, I’m updating all the rocks placed on my map with a material instance constant, so I can update the material params (like snow/rain etc). However (although this seems to work perfectly), when I call SetMater…

---

## [Possible to change foliage mesh during gameplay?](https://forums.unrealengine.com/t/possible-to-change-foliage-mesh-during-gameplay/128003)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 7\
**Last updated:** [July 1, 2019, 8:12pm UTC](https://forums.unrealengine.com/t/possible-to-change-foliage-mesh-during-gameplay/128003 "2019-07-01T20:12:10Z")

</div>

I’d like to update things like the material (and potentially the mesh itself) of instanced foliage meshes on my map. I can update the scale, and set them to hidden, but not change the mesh. Does anyone know how this co…

---

## [Poor performance from Landscape, any tips?](https://forums.unrealengine.com/t/poor-performance-from-landscape-any-tips/128119)

<div class="topic-metadata">

**Author:** [@ciox](https://forums.unrealengine.com/u/ciox)\
**Replies:** 4\
**Last updated:** [June 29, 2019, 7:08pm UTC](https://forums.unrealengine.com/t/poor-performance-from-landscape-any-tips/128119 "2019-06-29T19:08:01Z")

</div>

So, I believe I’ve tracked down the source of my awful frame drops, it’s the Landscape, only deleting the Landscape will solve the framerate issues. Now I’m about to just remake the whole thing given I have another (som…

---

## [How can I get mouse position in Flash before a MouseEvent is detected?](https://forums.unrealengine.com/t/how-can-i-get-mouse-position-in-flash-before-a-mouseevent-is-detected/128069)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 4\
**Last updated:** [June 29, 2019, 3:53pm UTC](https://forums.unrealengine.com/t/how-can-i-get-mouse-position-in-flash-before-a-mouseevent-is-detected/128069 "2019-06-29T15:53:44Z")

</div>

Today I decided to revisit a problem I’ve had since my first day moving the mouse in a Flash movie. When the movie starts, it doesn’t know where the mouse is, and the mouse gets drawn at (0, 0) until I move the mouse an…

---

## [How im going to do this on flash](https://forums.unrealengine.com/t/how-im-going-to-do-this-on-flash/127991)

<div class="topic-metadata">

**Author:** [@Neongho](https://forums.unrealengine.com/u/Neongho)\
**Replies:** 3\
**Last updated:** [June 26, 2019, 5:12pm UTC](https://forums.unrealengine.com/t/how-im-going-to-do-this-on-flash/127991 "2019-06-26T17:12:14Z")

</div>

Ok so im trying to make the UDK | DevelopmentKitGemsCreatingAMouseInterface interface work with my GFxMovie of AS2, the thing looks simple an external call that leads to the GFxClass but i have a problem the function …

---

## [Need explanation on parameter](https://forums.unrealengine.com/t/need-explanation-on-parameter/127978)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_71f890f9](https://forums.unrealengine.com/u/anonymous_user_71f890f9)\
**Replies:** 0\
**Last updated:** [June 25, 2019, 9:27am UTC](https://forums.unrealengine.com/t/need-explanation-on-parameter/127978 "2019-06-25T09:27:12Z")

</div>

Hello, I’ve recently get a task to recreate sound system in ue4 that was originally made in udk, and there is some parameter that i don’t understand - AmbientSoundStartTime=25345.0 What is it used for and what are this…

---

## [Anyone know how to blend color grading lookup tables?](https://forums.unrealengine.com/t/anyone-know-how-to-blend-color-grading-lookup-tables/127781)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 3\
**Last updated:** [June 23, 2019, 8:40am UTC](https://forums.unrealengine.com/t/anyone-know-how-to-blend-color-grading-lookup-tables/127781 "2019-06-23T08:40:43Z")

</div>

UDK | ColorGrading says only: The game blends LUTs very nicely if the camera enters a new post processing volume. But is there any way to blend the LUT without using volumes? I want to change the WorldInfo.DefaultPos…

---

## [Why would a 14k tri model lag so much? Do I need to use some kind of preload/precache setting?](https://forums.unrealengine.com/t/why-would-a-14k-tri-model-lag-so-much-do-i-need-to-use-some-kind-of-preload-precache-setting/127236)

<div class="topic-metadata">

**Author:** [@ciox](https://forums.unrealengine.com/u/ciox)\
**Replies:** 6\
**Last updated:** [June 12, 2019, 5:41pm UTC](https://forums.unrealengine.com/t/why-would-a-14k-tri-model-lag-so-much-do-i-need-to-use-some-kind-of-preload-precache-setting/127236 "2019-06-12T17:41:24Z")

</div>

Hey, guys, I get a significant frame drop when this model, and a very similar one to it enter the screen, along with various other small meshes that are less complex. The FPS quickly recovers but the frame drop is there…

---

## [Visual Studio Code extension for UnrealScript](https://forums.unrealengine.com/t/visual-studio-code-extension-for-unrealscript/126781)

<div class="topic-metadata">

**Author:** [@eblade](https://forums.unrealengine.com/u/eblade)\
**Replies:** 6\
**Last updated:** [June 5, 2019, 5:00pm UTC](https://forums.unrealengine.com/t/visual-studio-code-extension-for-unrealscript/126781 "2019-06-05T17:00:52Z")

</div>

Hi everyone! As I occasionally find myself referring to old code that I’ve written, as well as sometimes poking at some old game mods, and such, I decided to do a little bit of tooling for Visual Studio Code, my new def…

---

## [Can I force refresh of a pawn's light environment?](https://forums.unrealengine.com/t/can-i-force-refresh-of-a-pawns-light-environment/126928)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 4\
**Last updated:** [June 4, 2019, 3:50pm UTC](https://forums.unrealengine.com/t/can-i-force-refresh-of-a-pawns-light-environment/126928 "2019-06-04T15:50:46Z")

</div>

In my game, the pawns in your army can go to a kind of staging area where you can inspect them and organize them. When I teleport the pawns there and move the camera there, many of the pawns are too dark. Is there a wa…

---

## [Trace detect if hitting inside of collision mesh?](https://forums.unrealengine.com/t/trace-detect-if-hitting-inside-of-collision-mesh/126857)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 1\
**Last updated:** [June 1, 2019, 9:45am UTC](https://forums.unrealengine.com/t/trace-detect-if-hitting-inside-of-collision-mesh/126857 "2019-06-01T09:45:05Z")

</div>

If I fire a trace from within a mesh with collision, it collides with the edge of the collision mesh. However I want to ignore if i hit the edge from inside the mesh (an only care if i hit the outside). The material app…

---

## [I want a "static" mesh that can change to a different static mesh through code.](https://forums.unrealengine.com/t/i-want-a-static-mesh-that-can-change-to-a-different-static-mesh-through-code/126638)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 4\
**Last updated:** [May 26, 2019, 4:34pm UTC](https://forums.unrealengine.com/t/i-want-a-static-mesh-that-can-change-to-a-different-static-mesh-through-code/126638 "2019-05-26T16:34:15Z")

</div>

What I would like to do is damage a wall, and when the wall is destroyed, replace it with another mesh. What’s the best way to go about doing that? It doesn’t have to actually take damage like destructible mesh. Thank…

---

## [How to offload computation to GPU?](https://forums.unrealengine.com/t/how-to-offload-computation-to-gpu/126622)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 1\
**Last updated:** [May 26, 2019, 6:22am UTC](https://forums.unrealengine.com/t/how-to-offload-computation-to-gpu/126622 "2019-05-26T06:22:39Z")

</div>

My game is somewhat bottlenecked by CPU. Does anyone know how to offload computation onto the GPU? Any insight would be appreciated. Cheers

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

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