25 October 2011

Hiding in wardrobes

In order to allow the Burglars to hide from the guards, we wanted them to be able to hide in various places around the level. We decided that Wardrobes would be a cool place to hide.

I decided to experiment with the idea and how it would be achievable in the UDk


A simple flow diagram explaining the system

I then took this a step further and tried to implement it into a simple test level in UDK. Initially I had trouble working out how to get it to work without using the 'Teleporter' class found in the content browser. I had a look in my UDK reference book 'Mastering Unreal Technology' and realised that there was a Kismet node for this. This required that i have two triggers at each end. One 'trigger volume' to call the on screen comment and also to act as the teleport target, and the other 'Trigger' class to call the command to teleport the player.



I then linked it up in kismet



Further development of this will be required to make sure that only the burglars are able to use these hiding places. I have already begun looking at more complex kismet sequences and how the use of 'team specific triggers' will be useful.

We also want guards to be able to search in the wardrobes to see if the burglar is in them. If this is the case, the burglar will loose.

I managed a simple version of this, where, if a player triggered a third trigger placed at the wardrobe, the player would be killed. I used a delay node to simulate this as I am yet to get  working multiplayer game.