Call of Duty 4 Singleplayer Tutorial #3: Objectives and Doors

Channel:
Subscribers:
20,600
Published on ● Video Link: https://www.youtube.com/watch?v=dCKsOTG_Pf8



Call of Duty 4: Modern Warfare (Original / Remastered)
Category:
Tutorial
Duration: 21:02
4,105 views
84


Welcome back to an other Singleplayer Tutorial!
This is a very importand and cool tutorial that will teach you how to make objectives in your maps and basically guide and task the player through the mission. If you are totally new to this, you will need to watch the previous two parts in order to understand this tutorial.

I am sorry for any mistakes I did in the video, I tried to cut any of them out. Excuse my bad accent I hope it didn't sound too bad.
Also grad the documents!

Here is the map script code I used:
########################
########################


trigg1 = getent("trigg1", "targetname");
trigg2 = getent("trigg2", "targetname");
trigg3 = getent("trigg3", "targetname");
door1_trigg = getent("door1_trigg", "targetname");

objective_add(1, "active", &"TEST_VIDEO1_OBJ1A", trigg2.origin);
objective_add(2, "active", &"TEST_VIDEO1_OBJ2A", trigg1.origin);
objective_current(2);

trigg1 waittill("trigger");

objective_add(2, "active", &"TEST_VIDEO1_OBJ2B", door1_trigg.origin);

door1 = getent("door1", "targetname");
door1_trigg sethintstring( &"TEST_VIDEO1_DOOR_OPEN" );
door1_trigg waittill("trigger");
door1_trigg trigger_off();
door1 rotateyaw( -90, 2, 0.2, 0.7 );

objective_state(2, "done");
objective_current(1);

trigg2 sethintstring( &"TEST_VIDEO1_DOCS" );
trigg2 waittill("trigger");
trigg2 trigger_off();
docs1 = getent("docs1" , "targetname");
docs1 delete();

objective_add(1, "active", &"TEST_VIDEO1_OBJ1B", trigg3.origin);

trigg3 waittill("trigger");
objective_state(1, "done");

Changelevel("");

########################
Localizedstrings file:
########################

REFERENCE OBJ1A
LANG_ENGLISH "Grab the Documents."

REFERENCE OBJ2A
LANG_ENGLISH "Reach the Target Building."

REFERENCE OBJ1B
LANG_ENGLISH "Get to the extraction point."

REFERENCE OBJ2B
LANG_ENGLISH "Get in the Target Building."


REFERENCE DOOR_OPEN
LANG_ENGLISH "Press ^3&&1^7 to open the Door."

REFERENCE DOCS
LANG_ENGLISH "Press ^3&&1^7 to grad the Documents."



########################
########################







Tags:
cod4
call of duty 4
call of duty 4 modern warfare
call of duty 4: modern warfare
cod4 sp maps
cod4 custom maps
cod4 tutorial
cod4 mapping tutorial
cod4 sp map tutorial
how to make a cod4 singleplayer map
how to make a cod4 sp map
how to make a cod4 campaign
cod4 mapping
cod4 scripting
cod4 tutorials
cod4 tutorial spi
cod4 rooftops
cod4 rooftops campaign
cod4 rooftops singleplayer



Other Statistics

Call of Duty 4: Modern Warfare Statistics For SPi

SPi presently has 1,949,122 views for Call of Duty 4: Modern Warfare across 412 videos, with His channel uploaded over 9 days worth of Call of Duty 4: Modern Warfare videos. This is 71.59% of the total watchable video on SPi's YouTube channel.