OK, regarding scripting. i don't understand it. how do you know what to type in a script, it confusing to me
SCRIPTING
Moderator: Moderators
-
Innkeeper
- Colonel
- Posts: 475
- Joined: Mon Nov 25, 2002 10:13 pm
- Location: NC, USA (about 7.5 klicks from the capital dome)
- Contact:
Scripting is like a programming language. There is a syntax that is used, some of which is like "C". (boy I know I wiil be flamed
for sure). There might be some generic scripting tutorials somewhere. I'm not sure where. Scripts control the events that take place in the game. Such as giving a player weapons.
What is it you want to do. Maybe we can help.
What is it you want to do. Maybe we can help.
Innkeeper - moderator
<img src="http://www.planetmedalofhonor.com/map/layoutimages/banner.jpg" border="0" />
Buy the best and cry only once
<img src="http://www.planetmedalofhonor.com/map/layoutimages/banner.jpg" border="0" />
Buy the best and cry only once
-
(CG) Bob III
hope nobody minds if i jump in -- heh. when i write a script [mapname].scr or [mapname]_precache.scr, where do i put the .scr so the level actually uses it? do you need it in the same folder as the .map file when you compile it? or do you put it in the mohaa/main/maps folder with the compiled map? or somewhere else?
a sepparate question: can you use the script to load ubersound from the preexisting mohaa file structure, or do you need another copy? someone said that putting an ubersound with the map made it hostile to other maps or something - basically it should be avoided if possible.
a sepparate question: can you use the script to load ubersound from the preexisting mohaa file structure, or do you need another copy? someone said that putting an ubersound with the map made it hostile to other maps or something - basically it should be avoided if possible.
- General Death
- Moderator
- Posts: 1116
- Joined: Thu Nov 21, 2002 2:33 am
- Location: NC, USA
- Contact:
Goes in the same folder as the .bsp file....Its not needed before compiling.hope nobody minds if i jump in -- heh. when i write a script [mapname].scr or [mapname]_precache.scr, where do i put the .scr so the level actually uses it? do you need it in the same folder as the .map file when you compile it? or do you put it in the mohaa/main/maps folder with the compiled map? or somewhere else?

-
(CG) Bob III
- Lance Corporal
- Posts: 24
- Joined: Sun Jan 12, 2003 9:04 pm
I've found that it can also help if you cache some of the scripts used in your map. For instance I was working through the "MG with spotter" tutorial, where they spawned right at the start of the map. I noticed that the first time they spawned, the game would almost freeze, while it was running through the global/mg42.scr . So I added the script to my precache script and the map ran alot better.
-
Innkeeper
- Colonel
- Posts: 475
- Joined: Mon Nov 25, 2002 10:13 pm
- Location: NC, USA (about 7.5 klicks from the capital dome)
- Contact:
Hmmm... That is intresting to know.jv_map wrote:Also, all scripts in the global folder are automatically pre-compiled when loading the map, regardless of they're used or not.
Innkeeper - moderator
<img src="http://www.planetmedalofhonor.com/map/layoutimages/banner.jpg" border="0" />
Buy the best and cry only once
<img src="http://www.planetmedalofhonor.com/map/layoutimages/banner.jpg" border="0" />
Buy the best and cry only once

