<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3349493104480562016</id><updated>2024-09-14T20:45:35.103-07:00</updated><title type='text'>Tegleg&#39;s UDK Stuff</title><subtitle type='html'>udk related code, tutorials, vehicles and stuff.&#xa;braught to you by</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3349493104480562016.post-1235405605188005709</id><published>2011-09-02T07:18:00.000-07:00</published><updated>2011-09-02T08:12:05.602-07:00</updated><title type='text'>How to make a City for UDK with Urban Pad</title><content type='html'>follow these steps to easily create a city for &lt;a href=&quot;http://udk.com/download&quot;&gt;UDK&lt;/a&gt; using &lt;a href=&quot;http://www.gamr7.com/&quot;&gt;Urban Pad&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
open urban pad&lt;br /&gt;
&lt;br /&gt;
1. open project on hard disk and navigate to simple city beginner, should be in documents/gamr7....&lt;br /&gt;
2. click city, double click simple city beginner&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlEl9FhfpFZz-uGucUUxiuoziZ5m56TPyLkQYnHZIcZU1S01rLISKnhMAo-DCfpPqej7mi1dK_ZjKWWV8HAi3tKWhfMoDVFSD55ifCHMMqUaUDA9sOUF0rhgJmKWs0e-TVzhI5rWDWlnWE/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;290&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlEl9FhfpFZz-uGucUUxiuoziZ5m56TPyLkQYnHZIcZU1S01rLISKnhMAo-DCfpPqej7mi1dK_ZjKWWV8HAi3tKWhfMoDVFSD55ifCHMMqUaUDA9sOUF0rhgJmKWs0e-TVzhI5rWDWlnWE/s320/1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
3. click the last node and wait for it to build&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjItTuvZQPPYrm0F7BDGsNyWF2jodQVI97YLFsMe7uaAon4QjanMcbXHImWWroB5TQIkP_RsLcVHu-XgT1yko_3oXTjnK8Tv4Xhdd7DCJiVk24VCEBByITHSvBgy2BisOc8ileTZrCk-HaJ/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;186&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjItTuvZQPPYrm0F7BDGsNyWF2jodQVI97YLFsMe7uaAon4QjanMcbXHImWWroB5TQIkP_RsLcVHu-XgT1yko_3oXTjnK8Tv4Xhdd7DCJiVk24VCEBByITHSvBgy2BisOc8ileTZrCk-HaJ/s320/2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
when its finished building your city should look something like this&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD2lnEWu6q-pPJPQ1fXhBqvDfc3CjQCyxod_0CWxsZKsX8EJzaUm1VFuMpSz-SH8sz9j09d2lzJ81FdtoM7dXkyfBTIxT5Vx1lqQbMn4J522ryPraoWaWjBwHnzb-Uw4twvquBKZl4ctUv/s1600/3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;134&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD2lnEWu6q-pPJPQ1fXhBqvDfc3CjQCyxod_0CWxsZKsX8EJzaUm1VFuMpSz-SH8sz9j09d2lzJ81FdtoM7dXkyfBTIxT5Vx1lqQbMn4J522ryPraoWaWjBwHnzb-Uw4twvquBKZl4ctUv/s320/3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
4. click export and use these settings&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisJLhcX-T0eaakTpq1hne8aB8Vpb5Hero1E5aY2D-aOQAW-Jj5tRmYE5aLkeIju6UBMf5PrW6dPY43ECd0hKO3HMkWyhKBsg0nf27x0WJ9LGwKc5T6DZSxa8VSqy9Ro9SWputdLRDsuBYa/s1600/4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; width=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisJLhcX-T0eaakTpq1hne8aB8Vpb5Hero1E5aY2D-aOQAW-Jj5tRmYE5aLkeIju6UBMf5PrW6dPY43ECd0hKO3HMkWyhKBsg0nf27x0WJ9LGwKc5T6DZSxa8VSqy9Ro9SWputdLRDsuBYa/s320/4.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
udk&lt;br /&gt;
&lt;br /&gt;
1. import&lt;br /&gt;
2. double click each mesh and change its collision like this&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLBhFZHZcm5u4Rq_JbW50XEBAZJ23zrwLlAfyj1j-wgKywwSobxivSzls4Ni3OI0nIxbGXH3S1_NmCdKtu8hZt8Misy-2acbTe0PlR2sTbC4Z6m9OHhOaika75VWYMs1tY86a38WP0ogVz/s1600/5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;155&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLBhFZHZcm5u4Rq_JbW50XEBAZJ23zrwLlAfyj1j-wgKywwSobxivSzls4Ni3OI0nIxbGXH3S1_NmCdKtu8hZt8Misy-2acbTe0PlR2sTbC4Z6m9OHhOaika75VWYMs1tY86a38WP0ogVz/s320/5.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
3. drag all meshs into the 3d viewport&lt;br /&gt;
4. right click a mesh, select - all static mesh actors&lt;br /&gt;
5. press f4 to bring up the properties, click Movevment - Location and type 0 into x, y and z.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitoCnzyRUwvhwWvHasnVXv4tfRMdEHOwXBo8gX7N_gkQciakDmOQ799HdHlDEhyzGmEHdl6BhnnC9C47_PnDC9bMD3QHBkjzjk6ZqboGaouOy7zfOzOJiu5zC2cWiCRzCZilperKqRYr9x/s1600/6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; width=&quot;289&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitoCnzyRUwvhwWvHasnVXv4tfRMdEHOwXBo8gX7N_gkQciakDmOQ799HdHlDEhyzGmEHdl6BhnnC9C47_PnDC9bMD3QHBkjzjk6ZqboGaouOy7zfOzOJiu5zC2cWiCRzCZilperKqRYr9x/s320/6.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
save your map&lt;br /&gt;
&lt;br /&gt;
done!&lt;br /&gt;
&lt;br /&gt;
you might want to add some materials and a sky &lt;br /&gt;
Have fun razzing round your new city&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvpJA7bZjJwel0MLUWms2SJbpnk2Ujy4xwzcKNqs6HbhYLJ3epC0lzYGy3buMs0ZoStMhdDZ6B5kiQdShOYYEZzeeiIzALUNvbj49EJEV5_mvPAWgD6UYzPl2JsW7FDgrjaflxcoWqqaar/s1600/ScreenShot00006.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvpJA7bZjJwel0MLUWms2SJbpnk2Ujy4xwzcKNqs6HbhYLJ3epC0lzYGy3buMs0ZoStMhdDZ6B5kiQdShOYYEZzeeiIzALUNvbj49EJEV5_mvPAWgD6UYzPl2JsW7FDgrjaflxcoWqqaar/s320/ScreenShot00006.bmp&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/1235405605188005709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://teglegudk.blogspot.com/2011/09/how-to-make-city-for-udk-with-urban-pad.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/1235405605188005709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/1235405605188005709'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/2011/09/how-to-make-city-for-udk-with-urban-pad.html' title='How to make a City for UDK with Urban Pad'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlEl9FhfpFZz-uGucUUxiuoziZ5m56TPyLkQYnHZIcZU1S01rLISKnhMAo-DCfpPqej7mi1dK_ZjKWWV8HAi3tKWhfMoDVFSD55ifCHMMqUaUDA9sOUF0rhgJmKWs0e-TVzhI5rWDWlnWE/s72-c/1.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3349493104480562016.post-2814880165413476715</id><published>2011-06-05T06:15:00.000-07:00</published><updated>2011-06-05T06:19:16.658-07:00</updated><title type='text'>UDK Mouse Robot Style AI</title><content type='html'>a very basic mouse style ai.&lt;br /&gt;
it navigates its way round a map without using pathnodes or navmesh.&lt;br /&gt;
it traces directly in front to see if theres anything in the way, if theres nothing it moves forward.&lt;br /&gt;
if theres an obstruction in front, it takes a random distance left or right and does another trace. if theres an obstruction it does it again, if not it moves there.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.youtube.com/watch?v=kzm6IZtx-E8&quot; &quot;taget=_blank&quot;&gt;heres a vid&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
heres the code&lt;br /&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 242px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;class AIMouse extends GameAIController;

var Vector MyTarget;
var vector InFront;
var vector X,Y,Z;
var vector HitLoc, HitNormal;
var Actor HitActor;

simulated event PostBeginPlay()
{
 super.PostBeginPlay();

        //start the brain going at 1 second intervals
   SetTimer(1.0, true, &#39;BrainTimer&#39;);
}

function BrainTimer()
{
  GetAxes(Pawn.Rotation, X,Y,Z);

  InFront = Pawn.Location + 200 * X;

  //trace in front
  HitActor = Trace(HitLoc, HitNormal, InFront, Pawn.Location);
  //DrawDebugSphere( HitLoc, 30, 10, 0, 255, 0 );

  if (HitActor != None) //theres something in front
  {
  //trace randomly left or right
     TraceRandom();

  }
  else  //theres nothing in front
  {
  //move forward
    MyTarget = InFront;
    GoToState(&#39;MoveAbout&#39;);
  }

}

function TraceRandom()
{
  local int LeftRight;

  //make a random number
  LeftRight = Rand(200) - Rand(200);

  GetAxes(Pawn.Rotation, X,Y,Z);

  InFront = Pawn.Location + LeftRight * Y;

     //do another trace to a random location left or right
     HitActor = Trace(HitLoc, HitNormal, InFront, Pawn.Location);
     DrawDebugSphere( HitLoc, 30, 10, 255, 0, 0 );

     if (HitActor != None)  //if we trace something
     {
        Return;
     }
     else  //if we trace nothing
     {
     //move there
        MyTarget = InFront;
    GoToState(&#39;MoveAbout&#39;);
     }
}

state MoveAbout
{
Begin:

    MoveTo(MyTarget);
}

defaultproperties
{

}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/2814880165413476715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://teglegudk.blogspot.com/2011/06/udk-mouse-robot-style-ai.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/2814880165413476715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/2814880165413476715'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/2011/06/udk-mouse-robot-style-ai.html' title='UDK Mouse Robot Style AI'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3349493104480562016.post-5005895222515070189</id><published>2011-06-03T03:50:00.001-07:00</published><updated>2011-06-03T03:53:55.144-07:00</updated><title type='text'>udk ai, random movement, follow player</title><content type='html'>heres a udk ai that moves around randomly unless the player is close, then it will follow.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 242px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;class AIRandom2 extends GameAIController;

//declaring variables here means
//they may be used throughout this script
var Vector MyTarget;

//at the start of the level
simulated event PostBeginPlay()
{
super.PostBeginPlay();

//start the brain going at half second intervals
SetTimer(0.5, true, &#39;BrainTimer&#39;);
}

function BrainTimer()
{
//local variables are only used in this function
local Pawn P;
local float Distance;

//check if theres another pawn, the pawn belongning to this controller isnt counted
foreach WorldInfo.AllPawns(class&#39;Pawn&#39;, P)
{
if (P != None)  //if there is one
{

//get the distance
Distance = VSize2D(Pawn.Location - P.Location);

//if its closer than 500
if (Distance &lt;= 500)
            {
             //make its location MyTarget
             MyTarget = P.Location;
             //so it doesnt fly up n down
             MyTarget.Z = P.Location.Z;
             //MoveTo the pawn
             GoToState(&#39;MoveAbout&#39;);
            }
            else  //if its too far away
            {
            //do whats in the function called MoveRandom()
            MoveRandom();
            }

          }
          else  //if there isnt another pawn
          {
            //call the function MoveRandom()
            MoveRandom();
          }
        }
}

function MoveRandom()
{   
 local int OffsetX;
  local int OffsetY;

  //make a random number
  OffsetX = Rand(500)-Rand(500);
  OffsetY = Rand(500)-Rand(500);

       //some distance left or right and some distance in front or behind
    MyTarget.X = Pawn.Location.X + OffsetX;
    MyTarget.Y = Pawn.Location.Y + OffsetY;
       //so it doesnt fly up n down
       MyTarget.Z = Pawn.Location.Z;

    //move to the random location
    GoToState(&#39;MoveAbout&#39;);
}

state MoveAbout
{
Begin:
    //MoveTo makes it move to a location (vector)
    MoveTo(MyTarget);
}

defaultproperties
{

}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/5005895222515070189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://teglegudk.blogspot.com/2011/06/udk-ai-random-movement-follow-player.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/5005895222515070189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/5005895222515070189'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/2011/06/udk-ai-random-movement-follow-player.html' title='udk ai, random movement, follow player'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3349493104480562016.post-4112161669413146318</id><published>2011-06-03T03:48:00.000-07:00</published><updated>2011-06-03T03:54:22.818-07:00</updated><title type='text'>udk random movement ai code</title><content type='html'>heres an ai that moves around randomly&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 242px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;class RandomAI extends GameAIController;

var Vector MyTarget;

simulated event PostBeginPlay()
{
super.PostBeginPlay();

//start the brain going at half second intervals
SetTimer(0.5, true, &#39;BrainTimer&#39;);
}

function BrainTimer()
{
local int OffsetX;
local int OffsetY;

//make a random offset, some distance away
OffsetX = Rand(500)-Rand(500);
OffsetY = Rand(500)-Rand(500);

//some distance left or right and some distance in front or behind
MyTarget.X = Pawn.Location.X + OffsetX;
MyTarget.Y = Pawn.Location.Y + OffsetY;
//so it doesnt fly up n down
MyTarget.Z = Pawn.Location.Z;

GoToState(&#39;MoveAbout&#39;);

}

state MoveAbout
{
Begin:

MoveTo(MyTarget);
}

defaultproperties
{

}&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/4112161669413146318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://teglegudk.blogspot.com/2011/06/udk-random-movement-ai-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/4112161669413146318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/4112161669413146318'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/2011/06/udk-random-movement-ai-code.html' title='udk random movement ai code'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3349493104480562016.post-2789825798485672223</id><published>2011-03-24T12:40:00.000-07:00</published><updated>2011-03-24T12:52:12.709-07:00</updated><title type='text'>UDK Real 3D Menu Without Scaleform</title><content type='html'>Heres this then.&lt;br /&gt;
A menu made from in game 3D models.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://forums.epicgames.com/attachment.php?attachmentid=1267&amp;stc=1&amp;d=1300995913&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;384&quot; width=&quot;512&quot; src=&quot;http://forums.epicgames.com/attachment.php?attachmentid=1267&amp;stc=1&amp;d=1300995913&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
The code below is for 2 types of &#39;button&#39;.&lt;br /&gt;
1. TegButton_Actor.uc - this one has an OK button &lt;br /&gt;
2. TegButton_Ok - this is the ok button. can be used if you dont need an ok.&lt;br /&gt;
&lt;br /&gt;
just change the StaticMesh in DefaultProperties to use your own.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.youtube.com/watch?v=DNvT2SjkBqA&quot; Target=&quot;Blank&quot;&gt;Vid Here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 242px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;class TegButton_Actor extends Actor
    placeable;

var() const editconst LightEnvironmentComponent LightEnvironment;
var() string Command;

auto state MenuActive
{
    event TakeDamage(int DamageAmount, Controller EventInstigator, vector HitLocation, vector Momentum, class&lt;damagetype&gt; DamageType, optional TraceHitInfo HitInfo, optional Actor DamageCauser)
    {
    local TegButton_Ok OkButon;
    local vector L;

 super.TakeDamage(DamageAmount,EventInstigator, HitLocation,Momentum,DamageType,HitInfo,DamageCauser);

    L=Location;
    L.Z=Location.Z + 100;

    //when taking damage, spawn an ok button and give it a console command
    OkButon = Spawn(class&#39;TegButton_Ok&#39;,,,L, Rotation);
 OkButon.Command = Command;
    }

}

DefaultProperties
{
    Begin Object Class=DynamicLightEnvironmentComponent Name=MyLightEnvironment
 bEnabled=TRUE
    End Object
    LightEnvironment=MyLightEnvironment
    Components.Add(MyLightEnvironment)

    begin object class=StaticMeshComponent Name=BaseMesh

        // change this staticmesh to your own &#39;button&#39; model
 StaticMesh=StaticMesh&#39;EngineMeshes.Cube&#39;

 //LightEnvironment=MyLightEnvironment
    end object
    Components.Add(BaseMesh)

    CollisionComponent=BaseMesh
    bCollideActors=true
    bBlockActors=true

    //default console command
    Command=&quot;quit&quot;

}
&lt;/pre&gt;&lt;br /&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 242px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;class TegButton_Ok extends Actor
    placeable;

var() const editconst LightEnvironmentComponent LightEnvironment;
var() string Command;


auto state MenuActive
{
    event TakeDamage(int DamageAmount, Controller EventInstigator, vector HitLocation, vector Momentum, class&lt;damagetype&gt; DamageType, optional TraceHitInfo HitInfo, optional Actor DamageCauser)
    {
    local PlayerController PC;

 super.TakeDamage(DamageAmount,EventInstigator, HitLocation,Momentum,DamageType,HitInfo,DamageCauser);

    //on TakeDamage tell all the players the console command
 foreach WorldInfo.AllControllers(class&#39;PlayerController&#39;, PC)
  {
   PC.ConsoleCommand(Command);
  }
    }

}

DefaultProperties
{
    Begin Object Class=DynamicLightEnvironmentComponent Name=MyLightEnvironment
 bEnabled=TRUE
    End Object
    LightEnvironment=MyLightEnvironment
    Components.Add(MyLightEnvironment)

    begin object class=StaticMeshComponent Name=BaseMesh
 StaticMesh=StaticMesh&#39;EngineMeshes.Cube&#39;
 //LightEnvironment=MyLightEnvironment
    end object
    Components.Add(BaseMesh)

    CollisionComponent=BaseMesh
    bCollideActors=true
    bBlockActors=true

}
&lt;/pre&gt;based on &lt;a href=&quot;http://www.moug-portfolio.info/index.php?page=damage-dealing&quot; Target=&quot;Blank&quot;&gt;Mougli&lt;/a&gt;&#39;s SandboxSpinningBox</content><link rel='replies' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/2789825798485672223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://teglegudk.blogspot.com/2011/03/udk-real-3d-menu-without-scaleform.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/2789825798485672223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/2789825798485672223'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/2011/03/udk-real-3d-menu-without-scaleform.html' title='UDK Real 3D Menu Without Scaleform'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3349493104480562016.post-6695961918056513905</id><published>2011-03-24T07:07:00.000-07:00</published><updated>2011-03-24T14:53:49.146-07:00</updated><title type='text'>UDK Mobile Plug &amp; Play Car</title><content type='html'>Name: VHm_Escort&lt;br /&gt;
Type: Package and scripts&lt;br /&gt;
Category: Vehicles&lt;br /&gt;
UDK version: March. 2011 (Mobile) and newer&lt;br /&gt;
Author: Tegleg Records&lt;br /&gt;
Many thanks to: moot&lt;br /&gt;
Model comes from &lt;a href=&quot;http://sketchup.google.com/3dwarehouse/details?mid=139df45393b6847838805e546aa28d99&amp;prevstart=12&quot; Target=&quot;Blank&quot;&gt;Google Warehouse&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://dl.dropbox.com/u/4685265/TeglegMobileVehicle.zip&quot;&gt;Download Here&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggPuG8gzz-QWuOMAU984FPQA1xxYMnImqgy01S-H8g_7_IGwM_uV6e2nmslcvi-AJMdGXa4_0t2fycY0N8-IQkOg0Ly9GVY0JAAIv4UxG8u30FauqdBBirwSikHvxo1sZim4-hV-9vD8VZ/s1600/ScreenShot00001.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggPuG8gzz-QWuOMAU984FPQA1xxYMnImqgy01S-H8g_7_IGwM_uV6e2nmslcvi-AJMdGXa4_0t2fycY0N8-IQkOg0Ly9GVY0JAAIv4UxG8u30FauqdBBirwSikHvxo1sZim4-hV-9vD8VZ/s320/ScreenShot00001.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/6695961918056513905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://teglegudk.blogspot.com/2011/03/udk-mobile-plug-play-car.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/6695961918056513905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/6695961918056513905'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/2011/03/udk-mobile-plug-play-car.html' title='UDK Mobile Plug &amp; Play Car'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggPuG8gzz-QWuOMAU984FPQA1xxYMnImqgy01S-H8g_7_IGwM_uV6e2nmslcvi-AJMdGXa4_0t2fycY0N8-IQkOg0Ly9GVY0JAAIv4UxG8u30FauqdBBirwSikHvxo1sZim4-hV-9vD8VZ/s72-c/ScreenShot00001.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3349493104480562016.post-4043673085822618717</id><published>2011-03-24T07:04:00.000-07:00</published><updated>2011-03-24T14:52:03.238-07:00</updated><title type='text'>UDK Plug &amp; Play Car with Weapon</title><content type='html'>heres a big vehicle for you to play with. For NOVEMBER UDK and newer.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsJqCPbqI94O5dX8R1uABPT4mH8czws8RSiWCfslLsEiqUsJqmg6EDuS41tRprA6CH_ZTxcoArk6i9_fENWF_F1bRyGfByJG27gI9pdbWWQEc_E5sFEjWoeZjp04qabYAH86T9ZWmct9z1/s1600/ScreenShot00004.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsJqCPbqI94O5dX8R1uABPT4mH8czws8RSiWCfslLsEiqUsJqmg6EDuS41tRprA6CH_ZTxcoArk6i9_fENWF_F1bRyGfByJG27gI9pdbWWQEc_E5sFEjWoeZjp04qabYAH86T9ZWmct9z1/s320/ScreenShot00004.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
contains Original Version and LookSteer Version&lt;br /&gt;
&lt;a href=&quot;http://dl.dropbox.com/u/4685265/Tegleg_VH_Fire.zip&quot;&gt;Download Here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
it has:&lt;br /&gt;
* rotating turret that fires the manta weapon.&lt;br /&gt;
* 6 camera modes, with rear view function. Static cam when first enter vehicle.&lt;br /&gt;
* nicely ballanced with slippery tyres for drifting&lt;br /&gt;
* its fast &lt;br /&gt;
&lt;br /&gt;
comes with the 3ds max model file so you can make your own vehicle. the model is a terrible &#39;placeholder&#39;, im no modeler :s&lt;br /&gt;
open it up in max, delete the mesh, add your own, skin the bones. (look for geodav tutorials if you dont know what im talking about)&lt;br /&gt;
&lt;br /&gt;
HOW TO INSTALL:&lt;br /&gt;
&lt;br /&gt;
place the files from the zip in your udk instalation folder.&lt;br /&gt;
the zip is arranged in folders to make it easy for you.&lt;br /&gt;
&lt;br /&gt;
Development/Src/UTGame/Classes - Script Files.&lt;br /&gt;
Development/Src/UTGameContant/Classes - More Script Files. (wont work for udk versions older than august)&lt;br /&gt;
&lt;br /&gt;
UDKGame/Content/Vehicles - the vehicle package (wont work for udk versions older than november)&lt;br /&gt;
&lt;br /&gt;
Important:&lt;br /&gt;
add these lines to DefaultInput.ini for the camera control.&lt;br /&gt;
add to the bottom of ; Primary default bindings section&lt;br /&gt;
UDKGame/Config/DefaultInput.ini &lt;br /&gt;
&lt;br /&gt;
.Bindings=(Name=&quot;R&quot;,Command=&quot;GBA_LookBack | OnRelease GBA_NotLookBack&quot;)&lt;br /&gt;
.Bindings=(Name=&quot;V&quot;,Command=&quot;GBA_Camchange&quot;)</content><link rel='replies' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/4043673085822618717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://teglegudk.blogspot.com/2011/03/udk-plug-play-car-with-weapon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/4043673085822618717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/4043673085822618717'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/2011/03/udk-plug-play-car-with-weapon.html' title='UDK Plug &amp; Play Car with Weapon'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsJqCPbqI94O5dX8R1uABPT4mH8czws8RSiWCfslLsEiqUsJqmg6EDuS41tRprA6CH_ZTxcoArk6i9_fENWF_F1bRyGfByJG27gI9pdbWWQEc_E5sFEjWoeZjp04qabYAH86T9ZWmct9z1/s72-c/ScreenShot00004.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3349493104480562016.post-7088679870976340862</id><published>2011-03-24T06:07:00.000-07:00</published><updated>2011-03-24T06:16:59.080-07:00</updated><title type='text'>Dynamicaly changing the Player Pawn</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;How to Dynamicaly change the Player Pawn.&lt;br /&gt;
Put this in your Player Controller. The example here is using an &#39;exec&#39; function so it can be triggered from a button press or console command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 242px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;exec function FPress()
{
//declare the variables
local pawn p;
local vector l;
local rotator r; 

//set the variables 
p = Pawn;
l = Pawn.Location;
r = Pawn.Rotation; 

// get rid of the old pawn
UnPossess();
p.Destroy(); 

//spawn a new pawn and possess it
p = Spawn(class&#39;SomePawnClass&#39;, , ,l,r);

//use false if you spawned a character and true for a vehicle
Possess(p, false);
}
&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/7088679870976340862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://teglegudk.blogspot.com/2011/03/dynamicaly-changing-player-pawn.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/7088679870976340862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/7088679870976340862'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/2011/03/dynamicaly-changing-player-pawn.html' title='Dynamicaly changing the Player Pawn'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3349493104480562016.post-5601179499908733398</id><published>2011-03-24T05:56:00.000-07:00</published><updated>2011-03-24T05:56:16.269-07:00</updated><title type='text'>UDK Easy Save System</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;How to save a variable in UDK unreal script.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 242px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;class Something extends SomethingElse
config(SomeIni); //this points to an ini file where stuff is saved, in this case UDKSomeIni.ini

var config int SomeVar; // putting config allows you to save the variable

//your function where you set and save the variable
function SomeFunction()
{
SomeVar = 20; //give it a value

//SaveConfig() will save whatever variables have config
// it will create UDKSomeIni.ini (if it doesnt exist) and save the variable
SaveConfig();
}&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://teglegudk.blogspot.com/feeds/5601179499908733398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://teglegudk.blogspot.com/2011/03/udk-easy-save-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/5601179499908733398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3349493104480562016/posts/default/5601179499908733398'/><link rel='alternate' type='text/html' href='http://teglegudk.blogspot.com/2011/03/udk-easy-save-system.html' title='UDK Easy Save System'/><author><name>Sporsmaal2</name><uri>http://www.blogger.com/profile/10541191735466319870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZ91JxYM5OLwOgvsiJce4yzV_9NEztHh2PeRjoOpB_emBJRHifGsa667PvZM9dCzrQVTuES-G4bTIQjA7Rrsozu0yL2rBoNDQuRGRAoGXqrSs0y8jYDrxjnnoicpNv4M/s220/sporsmaal2+invaders2.jpg'/></author><thr:total>0</thr:total></entry></feed>