# UDK Programming and UnrealScript

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

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

**Page:** 29

---

## [Steam DRM wrapper doesn't seem to work with UDK built game](https://forums.unrealengine.com/t/steam-drm-wrapper-doesnt-seem-to-work-with-udk-built-game/76095)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 0\
**Last updated:** [October 15, 2016, 8:47pm UTC](https://forums.unrealengine.com/t/steam-drm-wrapper-doesnt-seem-to-work-with-udk-built-game/76095 "2016-10-15T20:47:45Z")

</div>

I just tried wrapping my game .exe file with the Steam DRM. However it looks like it doesn’t work with .NET executables. The Steamworks documentation does mention an alternative, by using ‘SteamAPI\_RestartAppIfNecessary…

---

## [Call other actions on AI bot during MoveTo()](https://forums.unrealengine.com/t/call-other-actions-on-ai-bot-during-moveto/75546)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 3\
**Last updated:** [October 9, 2016, 8:58pm UTC](https://forums.unrealengine.com/t/call-other-actions-on-ai-bot-during-moveto/75546 "2016-10-09T20:58:37Z")

</div>

I’m trying to figure out how to make my bot jump/fire/etc during a latent function such as MoveTo(). As far as i can tell, the MoveTo() halts execution within the state code until it’s reached it’s destination. Any advi…

---

## [Where to put global constants?](https://forums.unrealengine.com/t/where-to-put-global-constants/75547)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [October 9, 2016, 8:57pm UTC](https://forums.unrealengine.com/t/where-to-put-global-constants/75547 "2016-10-09T20:57:20Z")

</div>

I want to add some global constants, available to all my classes. An example would be to add a constant for an empty vect(0,0,0) (named something like VECTOR\_NONE, similar to INDEX\_NONE == -1). So i can use it for functi…

---

## [How can I use player in cinematics?](https://forums.unrealengine.com/t/how-can-i-use-player-in-cinematics/68246)

<div class="topic-metadata">

**Author:** [@oqzhnyldz](https://forums.unrealengine.com/u/oqzhnyldz)\
**Replies:** 12\
**Last updated:** [October 9, 2016, 8:13am UTC](https://forums.unrealengine.com/t/how-can-i-use-player-in-cinematics/68246 "2016-10-09T08:13:05Z")

</div>

I want to animate third person player in cinematic without using same-looking different mesh? How can I do it in kismet? I have nearly tried every way but I cant do it :frowning: Thanks for your help.:wink: For example …

---

## [Thank you Epic for porting the UDK forums :)](https://forums.unrealengine.com/t/thank-you-epic-for-porting-the-udk-forums/75269)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [October 7, 2016, 1:30pm UTC](https://forums.unrealengine.com/t/thank-you-epic-for-porting-the-udk-forums/75269 "2016-10-07T13:30:21Z")

</div>

The old UDK forums can now be found (in completion) here: UDK - Epic Games Forums Thank you Epic!

---

## [Find position along a line between two locations](https://forums.unrealengine.com/t/find-position-along-a-line-between-two-locations/75318)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 3\
**Last updated:** [October 6, 2016, 5:16pm UTC](https://forums.unrealengine.com/t/find-position-along-a-line-between-two-locations/75318 "2016-10-06T17:16:06Z")

</div>

Between two locations, i’m trying to figure out how to calculate a point along the line between the two. Example would be I want to calculate the position 1000 units distance from location 1 to location 2. So the param…

---

## [grenades work on terrain but not landscape](https://forums.unrealengine.com/t/grenades-work-on-terrain-but-not-landscape/75162)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_cae7faa3](https://forums.unrealengine.com/u/anonymous_user_cae7faa3)\
**Replies:** 17\
**Last updated:** [October 6, 2016, 4:45pm UTC](https://forums.unrealengine.com/t/grenades-work-on-terrain-but-not-landscape/75162 "2016-10-06T16:45:04Z")

</div>

my hand grenades fall through landscape 75% of the time but work fine on terrain.thay are a straight copy of the rocketlaunchers grenade scripts except for the mesh,but the rocketlauncher grenades also pass through lands…

---

## [Performance gain from using bUseOverlapCheck in CollidingActors()?](https://forums.unrealengine.com/t/performance-gain-from-using-buseoverlapcheck-in-collidingactors/75208)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 1\
**Last updated:** [October 5, 2016, 4:57pm UTC](https://forums.unrealengine.com/t/performance-gain-from-using-buseoverlapcheck-in-collidingactors/75208 "2016-10-05T16:57:01Z")

</div>

It states: “bUseOverlapCheck uses a sphere vs. box check instead of checking to see if the center of an object lies within a sphere” Doens’t mention whether this is any faster though. I would assume it would be, but wo…

---

## [Event called for killer when killed another pawn?](https://forums.unrealengine.com/t/event-called-for-killer-when-killed-another-pawn/75050)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [October 3, 2016, 9:34pm UTC](https://forums.unrealengine.com/t/event-called-for-killer-when-killed-another-pawn/75050 "2016-10-03T21:34:26Z")

</div>

I’m trying to add some behavior to my AI after they’ve killed another pawn. I don’t see any event in Controller or Pawn for this. I see Killed() in GameInfo, which I can use to forward the notification to the ‘Killer’ c…

---

## [SeeMonster() not being called for AI bots](https://forums.unrealengine.com/t/seemonster-not-being-called-for-ai-bots/74869)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [September 30, 2016, 5:56pm UTC](https://forums.unrealengine.com/t/seemonster-not-being-called-for-ai-bots/74869 "2016-09-30T17:56:46Z")

</div>

My AI bots are not having SeeMonster() called, when they are clearly able to view other AI bots in front of them. The only requirements I see in the function definition is that bIsPlayer is set to false on the pawn cont…

---

## [Disable bots seeing one another](https://forums.unrealengine.com/t/disable-bots-seeing-one-another/74520)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 7\
**Last updated:** [September 29, 2016, 11:23pm UTC](https://forums.unrealengine.com/t/disable-bots-seeing-one-another/74520 "2016-09-29T23:23:01Z")

</div>

I have noticed that in Controller.uc there is a var for bSeeFriendly: /\*\* Do visibility checks, call SeePlayer events() for pawns on same team as self. Setting to true will result in a lot more AI visibility line che…

---

## [Projectile fly-by sound?](https://forums.unrealengine.com/t/projectile-fly-by-sound/74251)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 5\
**Last updated:** [September 22, 2016, 9:08pm UTC](https://forums.unrealengine.com/t/projectile-fly-by-sound/74251 "2016-09-22T21:08:33Z")

</div>

I’m curious to know a decent way to emit a whistling sound for bullet projectiles. Any advice/ideas would be much appreciated.

---

## [pawns spawn with 2 controllers](https://forums.unrealengine.com/t/pawns-spawn-with-2-controllers/74184)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_cae7faa3](https://forums.unrealengine.com/u/anonymous_user_cae7faa3)\
**Replies:** 7\
**Last updated:** [September 22, 2016, 4:42pm UTC](https://forums.unrealengine.com/t/pawns-spawn-with-2-controllers/74184 "2016-09-22T16:42:42Z")

</div>

has anyone noticed that pawns spawned through kismet have 2 controllers unless the controller type in the actorfactory is set to none? I am trying to trace the cause of a spike in performance at 1 second intervals. for…

---

## [Removing press fire to start](https://forums.unrealengine.com/t/removing-press-fire-to-start/74010)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e84b0d30](https://forums.unrealengine.com/u/anonymous_user_e84b0d30)\
**Replies:** 0\
**Last updated:** [September 19, 2016, 12:44pm UTC](https://forums.unrealengine.com/t/removing-press-fire-to-start/74010 "2016-09-19T12:44:40Z")

</div>

Hello guys, is there anyway to remove press fire to start in UDK? and how to remove kill and time limits in utgame mode? thank you.

---

## [DOF around player focal point](https://forums.unrealengine.com/t/dof-around-player-focal-point/73565)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 17\
**Last updated:** [September 17, 2016, 5:13pm UTC](https://forums.unrealengine.com/t/dof-around-player-focal-point/73565 "2016-09-17T17:13:13Z")

</div>

I currently have my DOF set to FOCUS\_distance on my map. I’ve had a play around with the FOCUS\_position and it seems that the position gets fixed and never changes. Does anyone know how I can change it so that the focu…

---

## [PlayCustomAnim: BlendInTime and BlendOutTime has no effect with morphs.](https://forums.unrealengine.com/t/playcustomanim-blendintime-and-blendouttime-has-no-effect-with-morphs/73336)

<div class="topic-metadata">

**Author:** [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Replies:** 0\
**Last updated:** [September 10, 2016, 5:21pm UTC](https://forums.unrealengine.com/t/playcustomanim-blendintime-and-blendouttime-has-no-effect-with-morphs/73336 "2016-09-10T17:21:46Z")

</div>

This is a problem that I have since the beggining of the time. I use several face animations loops (not facefx) with morphs, to play when the characters talks. I use an animnode for the head only, and the animations inc…

---

## [Possible to check if location is within a collision mesh?](https://forums.unrealengine.com/t/possible-to-check-if-location-is-within-a-collision-mesh/73062)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 6\
**Last updated:** [September 7, 2016, 9:32pm UTC](https://forums.unrealengine.com/t/possible-to-check-if-location-is-within-a-collision-mesh/73062 "2016-09-07T21:32:03Z")

</div>

I’m wondering if it’s possible to determine if a particular location resides within a collision mesh? Any insight would be appreciated.

---

## [AI pawn to aim at player](https://forums.unrealengine.com/t/ai-pawn-to-aim-at-player/72184)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 4\
**Last updated:** [August 31, 2016, 10:49pm UTC](https://forums.unrealengine.com/t/ai-pawn-to-aim-at-player/72184 "2016-08-31T22:49:57Z")

</div>

I realize there must be much information on this in the UDK forums, but they’re currently down. I’d like to know if there is existing code in UDK for ai controlled bots to aim at a player. Or even… calculate the velocit…

---

## [AI bot to strafe left/right while targeting player?](https://forums.unrealengine.com/t/ai-bot-to-strafe-left-right-while-targeting-player/72590)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [August 31, 2016, 7:27pm UTC](https://forums.unrealengine.com/t/ai-bot-to-strafe-left-right-while-targeting-player/72590 "2016-08-31T19:27:50Z")

</div>

I know there must be tons of examples of how to handle this on the UDK forums, but they’re unfortunately still down. I can’t seem to find any examples of this in the UDK code.

---

## [Old UDK forums are not currently loading](https://forums.unrealengine.com/t/old-udk-forums-are-not-currently-loading/72170)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 4\
**Last updated:** [August 29, 2016, 6:20pm UTC](https://forums.unrealengine.com/t/old-udk-forums-are-not-currently-loading/72170 "2016-08-29T18:20:09Z")

</div>

The old forums contain a wealth of information for those of us using UE3. Please Epic, can you fix the forums?

---

## [Pawns falls a bit when crouching](https://forums.unrealengine.com/t/pawns-falls-a-bit-when-crouching/71926)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 4\
**Last updated:** [August 28, 2016, 11:15pm UTC](https://forums.unrealengine.com/t/pawns-falls-a-bit-when-crouching/71926 "2016-08-28T23:15:31Z")

</div>

I just updated the height of my player pawn collision cylinder, and now my pawn falls briefly when crouching. The US implementation of StartCrouch() gets called by native code and looks a bit janky to be honest. Does a…

---

## [How to change the mouse/xbox controller sensitivity?](https://forums.unrealengine.com/t/how-to-change-the-mouse-xbox-controller-sensitivity/71899)

<div class="topic-metadata">

**Author:** [@O\_and\_N](https://forums.unrealengine.com/u/O_and_N)\
**Replies:** 5\
**Last updated:** [August 27, 2016, 10:59am UTC](https://forums.unrealengine.com/t/how-to-change-the-mouse-xbox-controller-sensitivity/71899 "2016-08-27T10:59:42Z")

</div>

I know that for the mouse you can type a console command setsensitivity x.xx but i loud like to know where to find it in script/config setings? And i loud love to know how to set the right thumbstick(xbox controller)…

---

## [strange error](https://forums.unrealengine.com/t/strange-error/72145)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0878a78c](https://forums.unrealengine.com/u/anonymous_user_0878a78c)\
**Replies:** 1\
**Last updated:** [August 22, 2016, 8:46pm UTC](https://forums.unrealengine.com/t/strange-error/72145 "2016-08-22T20:46:22Z")

</div>

well since it’s not possible to be register in there forum I ask it here it’s will be wrong i know. but i really need someone help over here with this issue

---

## [Detect Speed of Turn](https://forums.unrealengine.com/t/detect-speed-of-turn/71786)

<div class="topic-metadata">

**Author:** [@Yummy-Vegetables](https://forums.unrealengine.com/u/Yummy-Vegetables)\
**Replies:** 3\
**Last updated:** [August 22, 2016, 8:02am UTC](https://forums.unrealengine.com/t/detect-speed-of-turn/71786 "2016-08-22T08:02:19Z")

</div>

The player can possess another pawn and after possessing it the speed of their rotation can vary ( I notice on slower PC’s the speed is slower then more powerful PC’s). I have enabled in game a means whereby the player …

---

## [Muzzle Flash Replication](https://forums.unrealengine.com/t/muzzle-flash-replication/70457)

<div class="topic-metadata">

**Author:** [@OmarWarOgre](https://forums.unrealengine.com/u/OmarWarOgre)\
**Replies:** 5\
**Last updated:** [August 14, 2016, 7:14am UTC](https://forums.unrealengine.com/t/muzzle-flash-replication/70457 "2016-08-14T07:14:43Z")

</div>

I’m currently trying to add in a muzzle flash effect to a weapon. My mod is for Chivalry: Medieval Warfare, so there’s no pre-existing muzzle flashes in the game. In my WeaponAttachment class I’ve set up the particle sys…

---

## [Bots with PhysicsAsset collision jump madly when colliding with each other](https://forums.unrealengine.com/t/bots-with-physicsasset-collision-jump-madly-when-colliding-with-each-other/67999)

<div class="topic-metadata">

**Author:** [@9454](https://forums.unrealengine.com/u/9454)\
**Replies:** 4\
**Last updated:** [August 13, 2016, 8:47am UTC](https://forums.unrealengine.com/t/bots-with-physicsasset-collision-jump-madly-when-colliding-with-each-other/67999 "2016-08-13T08:47:28Z")

</div>

If bots being setup using PhysicsAsset collision, they jump madly when colliding with each other. Could somebody please show me how to make them act normally, just like when they are setup using cylinder collision? Ple…

---

## [Decal to stop projecting its image on morph-targets pawn](https://forums.unrealengine.com/t/decal-to-stop-projecting-its-image-on-morph-targets-pawn/71385)

<div class="topic-metadata">

**Author:** [@9454](https://forums.unrealengine.com/u/9454)\
**Replies:** 0\
**Last updated:** [August 13, 2016, 8:44am UTC](https://forums.unrealengine.com/t/decal-to-stop-projecting-its-image-on-morph-targets-pawn/71385 "2016-08-13T08:44:49Z")

</div>

I spawn a decal (extends DecalComponent) at runtime and attach it to a bot. Everything works fine. The decal projects its image on the bot as expected. But when the bot turns into the morph state (MorphNode.SetNodeWeigh…

---

## [Use camera location in Kismet (custom node help)](https://forums.unrealengine.com/t/use-camera-location-in-kismet-custom-node-help/69438)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2cd160e3](https://forums.unrealengine.com/u/anonymous_user_2cd160e3)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 2:39pm UTC](https://forums.unrealengine.com/t/use-camera-location-in-kismet-custom-node-help/69438 "2016-07-20T14:39:44Z")

</div>

Hey everyone, I’m working on a project with UDK and I need a way to read the camera position and rotation from Kismet. I don’t have much UnrealScript experience, but after some tinkering I came up with this node: /\*\* \*…

---

## [Trace down cause of system crash during gameplay](https://forums.unrealengine.com/t/trace-down-cause-of-system-crash-during-gameplay/69017)

<div class="topic-metadata">

**Author:** [@Coldscooter](https://forums.unrealengine.com/u/Coldscooter)\
**Replies:** 2\
**Last updated:** [July 15, 2016, 4:59pm UTC](https://forums.unrealengine.com/t/trace-down-cause-of-system-crash-during-gameplay/69017 "2016-07-15T16:59:21Z")

</div>

I’m starting to experience some random system crashes while playing my game. These aren’t the typical code-related-bug crashes where you get the ‘udk has stopped responding’, but are entire system crashes that require a …

---

## [GetTimeLeft Function for Animation](https://forums.unrealengine.com/t/gettimeleft-function-for-animation/68858)

<div class="topic-metadata">

**Author:** [@Yummy-Vegetables](https://forums.unrealengine.com/u/Yummy-Vegetables)\
**Replies:** 1\
**Last updated:** [July 13, 2016, 3:52pm UTC](https://forums.unrealengine.com/t/gettimeleft-function-for-animation/68858 "2016-07-13T15:52:01Z")

</div>

Probably missing the obvious but can anyone see why I always get none returned when I try and get how much time is left to play for an anim. I’ve tried various anim nodes within the anim tree and they all return none. …

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

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