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

Post your scripting questions / solutions here

Moderator: Moderators

Locked
User avatar
longboarder4001
Corporal
Posts: 26
Joined: Sun Jun 22, 2003 4:13 am
Location: Texas
Contact:

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

Post 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).
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post 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.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

for obj maps it's also allies and axis spawn points.
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

dm

Post 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.
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Please post each question only once. And in the scripting forum.
/forum/viewtopic.php?t=3859
Image
Locked