# UDK Programming and UnrealScript

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

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

**Page:** 22

---

## [Toggle windowed mode via unrealscript?](https://forums.unrealengine.com/t/toggle-windowed-mode-via-unrealscript/107990)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [March 16, 2018, 3:41pm UTC](https://forums.unrealengine.com/t/toggle-windowed-mode-via-unrealscript/107990 "2018-03-16T15:41:42Z")

</div>

I know that you can press F11 to toggle windowed mode, but I’d like to add an option in my in-game settings. However I can’t see anything in the config that is bound to F11, and thus not sure what it’s calling to toggle …

---

## [Replication packet loss](https://forums.unrealengine.com/t/replication-packet-loss/107622)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 4\
**Last updated:** [March 12, 2018, 10:05pm UTC](https://forums.unrealengine.com/t/replication-packet-loss/107622 "2018-03-12T22:05:57Z")

</div>

Today I released an update that removed the need for players to port forward and instead just use steamsockets. I’ve had a few reports that certain in-game items don’t show for clients, where they are present on the ser…

---

## [How to set game language with Unrealscript?](https://forums.unrealengine.com/t/how-to-set-game-language-with-unrealscript/107374)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 13\
**Last updated:** [March 11, 2018, 8:48pm UTC](https://forums.unrealengine.com/t/how-to-set-game-language-with-unrealscript/107374 "2018-03-11T20:48:27Z")

</div>

I’m adding localization to my project. I see where the language is set in the config files: \[Engine.Engine\] Language=INT However I don’t see it anywhere in Unrealscript. So not sure how to set it through Unrealscript…

---

## [Jumping while using SimplePawn's bob resets the camera.](https://forums.unrealengine.com/t/jumping-while-using-simplepawns-bob-resets-the-camera/216686)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0d3638151](https://forums.unrealengine.com/u/anonymous_user_0d3638151)\
**Replies:** 0\
**Last updated:** [March 9, 2018, 1:14pm UTC](https://forums.unrealengine.com/t/jumping-while-using-simplepawns-bob-resets-the-camera/216686 "2018-03-09T13:14:54Z")

</div>

I’m having trouble figuring out what causes it to reset itself. Here’s some video footage of how it looks like in-game.

---

## [Scaleform movies sometimes take a long time to close](https://forums.unrealengine.com/t/scaleform-movies-sometimes-take-a-long-time-to-close/107523)

<div class="topic-metadata">

**Author:** [@ciox](https://forums.unrealengine.com/u/ciox)\
**Replies:** 4\
**Last updated:** [March 8, 2018, 11:33am UTC](https://forums.unrealengine.com/t/scaleform-movies-sometimes-take-a-long-time-to-close/107523 "2018-03-08T11:33:24Z")

</div>

When changing resolution I made it so that the swf HUD gets switched to another one depending on the aspect ratio since they can’t be made to adapt automatically, but sometimes the old HUD movies will sit there for a cou…

---

## [One actor tells another actor to GotoState, but it doesn't enter the state until over a second later](https://forums.unrealengine.com/t/one-actor-tells-another-actor-to-gotostate-but-it-doesnt-enter-the-state-until-over-a-second-later/107576)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 1\
**Last updated:** [March 8, 2018, 10:34am UTC](https://forums.unrealengine.com/t/one-actor-tells-another-actor-to-gotostate-but-it-doesnt-enter-the-state-until-over-a-second-later/107576 "2018-03-08T10:34:09Z")

</div>

The sprites in my game go through a walking animation that’s defined inside State Walking. The AIController that controls the pawns tells the sprite to GotoState(‘Walking’). I’m timing when the AIController gives the o…

---

## [Move smoothly out of water on sloped bank](https://forums.unrealengine.com/t/move-smoothly-out-of-water-on-sloped-bank/106779)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [February 21, 2018, 4:33pm UTC](https://forums.unrealengine.com/t/move-smoothly-out-of-water-on-sloped-bank/106779 "2018-02-21T16:33:07Z")

</div>

It is quite glitchy to swim out of water when the water’s edge is a sloped bank. I think the default UDK swimming implementation attempts to do a jump when it detects a water’s edge, but that doesn’t work very nicely for…

---

## ["Cyllinder" aligned with the world.](https://forums.unrealengine.com/t/cyllinder-aligned-with-the-world/105895)

<div class="topic-metadata">

**Author:** [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Replies:** 9\
**Last updated:** [February 17, 2018, 4:08am UTC](https://forums.unrealengine.com/t/cyllinder-aligned-with-the-world/105895 "2018-02-17T04:08:35Z")

</div>

There is some way to align the collision cube with the pawn instead with the world? If not, I have to make the holes overdimensioned.

---

## [What can cause pawn to teleport to vect(0,0,0)?](https://forums.unrealengine.com/t/what-can-cause-pawn-to-teleport-to-vect-0-0-0/106581)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 2\
**Last updated:** [February 16, 2018, 6:40pm UTC](https://forums.unrealengine.com/t/what-can-cause-pawn-to-teleport-to-vect-0-0-0/106581 "2018-02-16T18:40:47Z")

</div>

During combat, some of my pawns sometimes teleport to vect(0,0,0). From there, they fall until they eventually reach the killZ, and I log their destruction location at vect(0,0,-200000). This happens at the same point …

---

## [Detect if camera is below a material (in material expression)](https://forums.unrealengine.com/t/detect-if-camera-is-below-a-material-in-material-expression/106526)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [February 15, 2018, 6:43pm UTC](https://forums.unrealengine.com/t/detect-if-camera-is-below-a-material-in-material-expression/106526 "2018-02-15T18:43:19Z")

</div>

I’m trying to increase the opacity of my water surface when the player ducks below the surface. Any ideas on which nodes can help achieve this? Thanks

---

## [Add a post process material effect to a post process volume?](https://forums.unrealengine.com/t/add-a-post-process-material-effect-to-a-post-process-volume/106521)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 1\
**Last updated:** [February 15, 2018, 1:22am UTC](https://forums.unrealengine.com/t/add-a-post-process-material-effect-to-a-post-process-volume/106521 "2018-02-15T01:22:22Z")

</div>

I’m using post process volumes to handle how my water looks when the player is swimming. I want to add a ‘ripple’ effect to the view when underwater. I’ve created the material but can’t see a way to use it in the post p…

---

## [How to add an outline around an object in the world?](https://forums.unrealengine.com/t/how-to-add-an-outline-around-an-object-in-the-world/106465)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 4\
**Last updated:** [February 14, 2018, 10:50pm UTC](https://forums.unrealengine.com/t/how-to-add-an-outline-around-an-object-in-the-world/106465 "2018-02-14T22:50:52Z")

</div>

I’d like to add a glowing outline around objects to indicate that they can be interacted with (when the player gets within a certain distance). Haven’t been able to find any examples yet. Does anyone have any ideas? Ch…

---

## [How to resize a volume with Unrealscript?](https://forums.unrealengine.com/t/how-to-resize-a-volume-with-unrealscript/106183)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 0\
**Last updated:** [February 7, 2018, 8:44pm UTC](https://forums.unrealengine.com/t/how-to-resize-a-volume-with-unrealscript/106183 "2018-02-07T20:44:26Z")

</div>

I’m trying to create ladders that can placed at runtime. I see there is a ladderVolume class, which seems to work fine in the editor. It seems easy enough to spawn a dynamic volume with unrealscript, but how can i resiz…

---

## [Second gamepad/controller is not seen by the actual game, only by Scaleform](https://forums.unrealengine.com/t/second-gamepad-controller-is-not-seen-by-the-actual-game-only-by-scaleform/105635)

<div class="topic-metadata">

**Author:** [@ciox](https://forums.unrealengine.com/u/ciox)\
**Replies:** 4\
**Last updated:** [February 3, 2018, 11:53pm UTC](https://forums.unrealengine.com/t/second-gamepad-controller-is-not-seen-by-the-actual-game-only-by-scaleform/105635 "2018-02-03T23:53:32Z")

</div>

I can’t get any trace of the second controller visible in game as far as unrealscript, so that I could carry out any kind of player start/login/etc procedure, inputs never arrive to my PlayerInput class where they could …

---

## [Possible to merge/join two dymanic arrays?](https://forums.unrealengine.com/t/possible-to-merge-join-two-dymanic-arrays/105137)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 0\
**Last updated:** [January 17, 2018, 5:54am UTC](https://forums.unrealengine.com/t/possible-to-merge-join-two-dymanic-arrays/105137 "2018-01-17T05:54:35Z")

</div>

I know that i can just iterate through the second array and AddItem() each element into first. Just though there might be a nicer way of doing this… ?

---

## [How do I create an actor with a particle system component that I set in the editor?](https://forums.unrealengine.com/t/how-do-i-create-an-actor-with-a-particle-system-component-that-i-set-in-the-editor/105085)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 2\
**Last updated:** [January 16, 2018, 5:22pm UTC](https://forums.unrealengine.com/t/how-do-i-create-an-actor-with-a-particle-system-component-that-i-set-in-the-editor/105085 "2018-01-16T17:22:18Z")

</div>

I can make placeable actors. I can make actors that have a particle system component defined in the DefaultProperties. I can spawn particle emitters at runtime using the emitter pool. But that’s not what I want to do. …

---

## [Strange decal behavior.  It's writing depth instead of using the mesh's depth.](https://forums.unrealengine.com/t/strange-decal-behavior-its-writing-depth-instead-of-using-the-meshs-depth/104893)

<div class="topic-metadata">

**Author:** [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Replies:** 5\
**Last updated:** [January 15, 2018, 7:37am UTC](https://forums.unrealengine.com/t/strange-decal-behavior-its-writing-depth-instead-of-using-the-meshs-depth/104893 "2018-01-15T07:37:43Z")

</div>

I’m using the Sobel post process filter to draw an outline around meshes in my game. I’d also like to have transparent decals, but the transparent decals seem to get their own depth, possibly calculated from the decal’s…

---

## [Sound occlusion](https://forums.unrealengine.com/t/sound-occlusion/104956)

<div class="topic-metadata">

**Author:** [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Replies:** 5\
**Last updated:** [January 14, 2018, 10:10pm UTC](https://forums.unrealengine.com/t/sound-occlusion/104956 "2018-01-14T22:10:02Z")

</div>

The engine has something to occlude sounds? I’m using a fasttrace to see if there is some obstacle, like a wall, between the player and the NPC who is talking. Then the soundcue volume is set to 50% and the subtitle is …

---

## [How to transfer velocity when entering a water volume?](https://forums.unrealengine.com/t/how-to-transfer-velocity-when-entering-a-water-volume/105003)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 1\
**Last updated:** [January 14, 2018, 8:10am UTC](https://forums.unrealengine.com/t/how-to-transfer-velocity-when-entering-a-water-volume/105003 "2018-01-14T08:10:27Z")

</div>

Currently when my pawn hits a water volume, it simply loses all of it’s speed. I’d like to transfer velocity so that a high jump would cause the player to sink. Any ideas on how to do this?

---

## [Actor class for static mesh that can be spawned and works for client](https://forums.unrealengine.com/t/actor-class-for-static-mesh-that-can-be-spawned-and-works-for-client/104750)

<div class="topic-metadata">

**Author:** [@Neongho](https://forums.unrealengine.com/u/Neongho)\
**Replies:** 2\
**Last updated:** [January 11, 2018, 3:24pm UTC](https://forums.unrealengine.com/t/actor-class-for-static-mesh-that-can-be-spawned-and-works-for-client/104750 "2018-01-11T15:24:01Z")

</div>

So basically I have to use kactorspawnable for foliage actors so they have collision but can cause some bugs anybody knows a class that can have collision and works for the client?

---

## [How to know if pawn is inside pylon](https://forums.unrealengine.com/t/how-to-know-if-pawn-is-inside-pylon/104756)

<div class="topic-metadata">

**Author:** [@Neongho](https://forums.unrealengine.com/u/Neongho)\
**Replies:** 1\
**Last updated:** [January 9, 2018, 3:35pm UTC](https://forums.unrealengine.com/t/how-to-know-if-pawn-is-inside-pylon/104756 "2018-01-09T15:35:29Z")

</div>

How to know with a function if a pawn is inside a pylon ? So then I can set it to do something or something else?

---

## [Navmesh to work with spawned actors is it possible ?](https://forums.unrealengine.com/t/navmesh-to-work-with-spawned-actors-is-it-possible/104747)

<div class="topic-metadata">

**Author:** [@Neongho](https://forums.unrealengine.com/u/Neongho)\
**Replies:** 0\
**Last updated:** [January 8, 2018, 4:40pm UTC](https://forums.unrealengine.com/t/navmesh-to-work-with-spawned-actors-is-it-possible/104747 "2018-01-08T16:40:20Z")

</div>

So I spawned a barrier and the dynamic pylon did not recognize it any idea, does this happened in unreal engine 4 aswell ?

---

## [ship in udk](https://forums.unrealengine.com/t/ship-in-udk/103907)

<div class="topic-metadata">

**Author:** [@dark\_space](https://forums.unrealengine.com/u/dark_space)\
**Replies:** 13\
**Last updated:** [January 8, 2018, 1:45pm UTC](https://forums.unrealengine.com/t/ship-in-udk/103907 "2018-01-08T13:45:12Z")

</div>

hello , i wanted to ask about how to add a ship as a vehicle in udk to be used by the player like the car

---

## [Smoothing Camera Along Specific Axis](https://forums.unrealengine.com/t/smoothing-camera-along-specific-axis/104693)

<div class="topic-metadata">

**Author:** [@Shindawg](https://forums.unrealengine.com/u/Shindawg)\
**Replies:** 1\
**Last updated:** [January 8, 2018, 12:35pm UTC](https://forums.unrealengine.com/t/smoothing-camera-along-specific-axis/104693 "2018-01-08T12:35:06Z")

</div>

I am having trouble figuring out how to smooth camera movement when it detects an obstruction. It’s not so bad when detecting a collision, but when un-detecting and going back to its original distance, the effect is inst…

---

## [Touch() on FluidSurfaceActor doesn't work for dedicated server](https://forums.unrealengine.com/t/touch-on-fluidsurfaceactor-doesnt-work-for-dedicated-server/104718)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 0\
**Last updated:** [January 7, 2018, 10:58pm UTC](https://forums.unrealengine.com/t/touch-on-fluidsurfaceactor-doesnt-work-for-dedicated-server/104718 "2018-01-07T22:58:53Z")

</div>

I’ve noticed something strange with my FluidSurfaceActor (unmodified): When I fire projectiles into it (in single player or as a listen host) the Touch() event fires, however as a dedicated server the event never occurs. …

---

## [String between two moving objects?](https://forums.unrealengine.com/t/string-between-two-moving-objects/104448)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [January 2, 2018, 9:23pm UTC](https://forums.unrealengine.com/t/string-between-two-moving-objects/104448 "2018-01-02T21:23:58Z")

</div>

I’m working on a fishing rod and was wondering about ways I could display string (fishing line) between the rod and the bait. Anyone have any suggestions? Thanks

---

## [Tip of fishing rod to bend?](https://forums.unrealengine.com/t/tip-of-fishing-rod-to-bend/104409)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [January 1, 2018, 6:55am UTC](https://forums.unrealengine.com/t/tip-of-fishing-rod-to-bend/104409 "2018-01-01T06:55:41Z")

</div>

I’m working on a fishing mechanic, and have a skeletal mesh as a rod that the player holds. I’d love to be bend the tip of the rod towards a fixed location. Doesn’t anyone have any ideas on how i might achieve this? Th…

---

## [Trace won't hit my actor](https://forums.unrealengine.com/t/trace-wont-hit-my-actor/103298)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 3\
**Last updated:** [December 13, 2017, 6:17am UTC](https://forums.unrealengine.com/t/trace-wont-hit-my-actor/103298 "2017-12-13T06:17:04Z")

</div>

Hi there. I have made a custom actor for a river, that has a static mesh component with collision. When i do a trace (to check for footstep sounds to play) it never hits my river and instead always just hits my landscap…

---

## [Help with Mouse-over text on Canvas](https://forums.unrealengine.com/t/help-with-mouse-over-text-on-canvas/215530)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_864efdf5](https://forums.unrealengine.com/u/anonymous_user_864efdf5)\
**Replies:** 0\
**Last updated:** [December 3, 2017, 8:21pm UTC](https://forums.unrealengine.com/t/help-with-mouse-over-text-on-canvas/215530 "2017-12-03T20:21:17Z")

</div>

Hey Everyone! I have a question to ask: I’m currently tying to detect when the mouse cursor crosses over a string of text from an array of items in an inventory. Attached is an example image to help illustrate what I’m t…

---

## [Actionscript 2 and html text](https://forums.unrealengine.com/t/actionscript-2-and-html-text/103308)

<div class="topic-metadata">

**Author:** [@Neongho](https://forums.unrealengine.com/u/Neongho)\
**Replies:** 4\
**Last updated:** [December 1, 2017, 10:12am UTC](https://forums.unrealengine.com/t/actionscript-2-and-html-text/103308 "2017-12-01T10:12:35Z")

</div>

im feeling ambitious with my actionscript 2 HUD, but my question is can you use a HTML text for example for the text arena clik form?

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

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