Basic Level Part 4
From RoboBlitz Editor Wiki
Basic Level Editing Part 4 Kismet Weapons
Load up your file from the previous tutorial. We are going to create a weapons system for RoboBlitz so that you have weapons, armor, better jumps, and faster speed. To do this we will use Kismet the graphical node logic system with inside of the Unreal Editor 3. This allows us to create the brains of the game without having to write a bunch of code. Kismet is something new to Unreal Engine series where previous everything had to be written in code for the game logic and events.
For more information on Kismet.
Select the button in your map and open the kismet window (). Right click in the gray center section of the Kismet window and select New Event->Level Beginning. Now right click in the gray center section of the Kismet window and select New Variable->Object->Player. You can move nodes by holding down Ctrl and left click dragging them to their desired location. Ok Good. Now right click in the gray center section of the Kismet window and select New Action->RoboBlitz->Give Pickup for each of the nodes in the picture below. Left click on each pick up node one by one and fill in the information according to the names of each node in the parameters box below just like in the picture. After that connect the nodes by dragging from one box to the next and connect up the nodes just like in the picture.
Each node represents a block of code. You are connecting the nodes when the level begins to the give pickup nodes and you have told the give pickup nodes what object you are giving. In this case you are giving the objects to player 0, which is the very first player, by connecting player 0 to the target of each give pickup node. Since this is a single player game we do not have to worry about any other players. Each give pickup node is executed in order from their connections one after the other from the beginning level node. By connecting them in this sequence we make the nodes easier to read than if we connected each give pickup node in the level beginning node.
Try it Out
Before you can play a map it has to be "built". If a map has been built before and you make a few changes, sometimes you can play it again without building, depending on what you changed. However, if you ever change a logic system, you need to rebuild. Click the "Build All" button on the top toolbar. The icon looks like this: