Singleplayer DM / TDM Objective CTF TOW Liberation
(Thanks to map4all for the tut, but in German.) -------------------------------------------------------------------------------
This tutorial shows you how to add AI that jumps out from a cabinet.
------------------------------------------------------------------------------- Step 1 : The Map -------------------------------------------------------------------------------
Let's get started!
Make a room with and info_player_start and lights. Right click in the 2D view and select animate-->furniture-->hidden-wadrobe.
Give it the following properties:
"#chance" means that the chances of coming across this AI is 100%.
Then make an AI (I used ai_german_wehrmact_grenadier) with a "targetname" of "ai_guy". There should be an arrow connecting them together.
Now make a trigger multiple where you want it to be.Give it the following properties:
Save your map as "test_cabinet".
------------------------------------------------------------------------------- Step 2 : The Scripting -------------------------------------------------------------------------------
Now for the scripting:
//Making an AI jump out from a wadrobe
//Thanks to map4all for the tut
main:
level waittill prespawn
exec global/cabinet.scr
level waittill spawn
$player item weapons/thompsonsmg.tik
$player ammo smg 300
$player useweaponclass smg
end
Simple? Compile your map and play!
[ Download the Example Map ]
Site Logo and Graphics by DJ "panTera" Bloot Site design © copyright 2003 Chris "Surgeon" Wood This site is best viewed using Internet Explorer 6 @ 1024x768. All images and documents © copyright 2003 respective owners.