Page 1 of 1

Da Basic Script Question?

Posted: Tue Feb 25, 2003 12:46 am
by Ace of Spades
I've read that to start learning how to script, you need to view the ones that came with the game. How is this done? Also, when do you need to script and when do you not need to? Last question. Do you make one script file for everything that you script in your map or do you need to use multiple script files. Oh, one more, PRECACHE? Hmmm.....no clue what it's for. Thanks!

Ace

8)

Posted: Tue Feb 25, 2003 1:28 am
by mohaa_rox
You need a script in SP, but MP, you can add stuff like explosions, and OBJ maps.

Posted: Tue Feb 25, 2003 1:49 am
by Ace of Spades
Maybe I should ask one question at a time. How do I view the script files that came with the game?

Ace

:oops:

Posted: Tue Feb 25, 2003 5:31 am
by CHeesER
You can find the script(scr)files in the games pk3 files,found in your main or mainta folder

First the global scripts,they are in Pak0.pk3.
You can open the pk3 file with Winzip,or Winrar,or Pakscape.Anyone of these will work.
In the pk3 file ,find the global folder.In there are all the global scripts that you can call in your map script.

Second,Are the map scripts,they are in Pak5.pk3
Each map has its own script and precache script.So you do not need multiple scripts.

Precacheing is for the preloading of model tiki's

There are other scr files in the folders but those are the main ones to look at.

You can read scr, tiki, urc, shader, mus, cfg files with notepad,or any text editor.

As for when you need to script or not,in general if its going to do something besides just being there you need to add it to your map script

Reading the scr files is very hard if your new,have a look at them.But don't get discouraged ,try to learn something bit by bit,and keep reading the forums.

Posted: Tue Feb 25, 2003 5:43 am
by Ace of Spades
Thank you for the wonderful information CHeesER and mohaa_rox. This is helping out alot! I will check out the Pak0 and Pak5 files and see what's going on in there, and I'm sure there will be more q's. Thanks again guys! Happy mapping!

Ace

:mrgreen: