Allowing the player to pick up, carry, and place an object
UTGame comes with a PhysicsGun that lets you pick up RigidBody actors and hoist and throw them around. Sometimes however, you may want a controlled system to pick up objects and carry them around. The steps in this lesson provide a mechanic where you carry objects in front of you and uses shooting at the object to capture and release it. It uses an integer value comparison of the kind we've already covered, a switch for capture and release behavior, and offset triggers attached to the player to set a carrying location.
Getting ready
Load the scene Packt_05_Carrying_Start.UDK.
First examine the scene, noting the stair by the wall that has a missing step. Actually it is visible, but it will be hidden at level load. Select this and convert it to a Mover, so that it can be hidden. There is also another block like it lying on the ground nearby, shown in the next screenshot. Select this and convert it to a KActor. Our goal will be to place...