Page 1 of 1

Creating a .scr file for entering script for a map?

Posted: Fri Jun 27, 2003 1:37 am
by longboarder4001
I am making a Death Match map and the manual says i need to enter a certain scrpit for the map as an .scr file. Fist of all how do i make an .scr file and then how do i enter the script? Do i just copy and paste? And does anyone know a specific script needed for multyplayer maps( such as for player respawn areas).

Posted: Fri Jun 27, 2003 1:44 am
by Krane
A script file is a text file, only with another extension. Make your script in Notepad (or other word processor) and change the extension from .txt to .scr , got it?

Now how to make a script: This link will show you a script example. Very usefull to start learning:

http://www.planetmedalofhonor.com/rjuka ... dix_c.html

Another good link is this site's tutorial:

http://map.moh-central.net/tutorials/dm_scripting.php

Oh, I almost forgot: the reespawn points...

When making your map in Radiant, If your map will be "Free for All" will need to place info>player>deathmatch where you want the player to reespawn. If is a "Team Match" map, you need to place info>player>alllies or info>player>axis. These will be the reespawn points for allies or axis.

Hope it helps.

Posted: Fri Jun 27, 2003 5:51 am
by mohaa_rox
for obj maps it's also allies and axis spawn points.

dm

Posted: Fri Jun 27, 2003 6:39 am
by tltrude
You don't need a script to test your map in deathmatch. Just put the bsp file in main/maps/dm and it will work. The spawn points are added in the editor and not with a script.

You only need a script when you add explosions or moving objects to a map.

Posted: Fri Jun 27, 2003 6:45 am
by jv_map
Please post each question only once. And in the scripting forum.
/forum/viewtopic.php?t=3859