Ok...i took the original stock map .scr and added the objects i wanted to spawn..then i saved...opened pakscape...createda folder called MAPS..then inside that 2 folders called DM and OBJ..then i added the original map.scr to the appropriate folder....and saved as zzzzzzz??????.pk3...then put into mainta..then started game and went into START OWN GAME to see if they worked....and i dont see anything!! is this the right process? and also...where do i put the objects under? LEVEL WAITTILL SPAWN or LEVEL WAITTILL PRESPAWN...i tried to use a object that i saw on MOHAA EDITTING website http://www.mohaa-mods.web1000.com/spawn.html....and i couldnt find the object....
please help!!
thx
Spawning objects in stock maps help
Moderator: Moderators
-
LiquorKraZy
- Captain
- Posts: 267
- Joined: Tue Aug 10, 2004 5:38 am
- Location: CA
- Contact:
object
You don't need a pk3 just to test it. If you place the modified script (.scr file) in mohaa/main/maps/dm, or obj, it will automattically override the original multiplayer script that is in pak5.
-
LiquorKraZy
- Captain
- Posts: 267
- Joined: Tue Aug 10, 2004 5:38 am
- Location: CA
- Contact:
-
Cobra {sfx}
- Site Admin
- Posts: 194
- Joined: Tue Mar 23, 2004 10:25 pm
- Contact:
main:
level waittill prespawn
thread bike
level waittill spawn
end
bike:
local.bmwbike_d = spawn models/vehicles/bmwbike_d.tik
local.bmwbike_d.origin = ( 2959.25 1777.91 -511.88 ) //edit these for the map your putting it in
local.bmwbike_d solid
local.bmwbike_d immune bullet
local.bmwbike_d immune fast_bullet
local.bmwbike_d immune bash
local.bmwbike_d immune mg
local.bmwbike_d immune explosion
end
You said mainta directory - thats either Spearhead or Breakthrough (cant remember which) im not sure if either use different code to Allied Assault or if that model is in there but its worth u checking to see if it has that model.
level waittill prespawn
thread bike
level waittill spawn
end
bike:
local.bmwbike_d = spawn models/vehicles/bmwbike_d.tik
local.bmwbike_d.origin = ( 2959.25 1777.91 -511.88 ) //edit these for the map your putting it in
local.bmwbike_d solid
local.bmwbike_d immune bullet
local.bmwbike_d immune fast_bullet
local.bmwbike_d immune bash
local.bmwbike_d immune mg
local.bmwbike_d immune explosion
end
You said mainta directory - thats either Spearhead or Breakthrough (cant remember which) im not sure if either use different code to Allied Assault or if that model is in there but its worth u checking to see if it has that model.
It dosn't matter if it's AA or SH or BT, they all can be done the same way. Just make your modified scr and place it in the same directory structure that you found the original one in. for eg maps/dm/dm_brest.scr.
After testing add it the a pk3 file with those same dir's and name the pk3 User_mapMods.pk3 or something descriptive. Put it in main/ for AA, mainta/ for SH and maintt/ for BT...
Grassy
Oh and listen to Cobra, he knows the score
Oops, Bdbodger beat me to it, he is correct. Must be in a pk3 for Spearhead and Breakthrough...
After testing add it the a pk3 file with those same dir's and name the pk3 User_mapMods.pk3 or something descriptive. Put it in main/ for AA, mainta/ for SH and maintt/ for BT...
Grassy
Oh and listen to Cobra, he knows the score
Oops, Bdbodger beat me to it, he is correct. Must be in a pk3 for Spearhead and Breakthrough...
-
LiquorKraZy
- Captain
- Posts: 267
- Joined: Tue Aug 10, 2004 5:38 am
- Location: CA
- Contact:
Ok...thx for the help guys!!
I have notcied that if i add an item/items then create a pk3 file for it...and then put that pk3 into mainta that itll show up when i hit editscript...now im assuming that i either have to make a pk3 file everytime i add an object..or once i create the first pk3 then i can go into editscript and make changes then save...then restart..and tsee the new items ive added!!
Thx again for the help...i love learnin' this srciptin' stuff and once thats done maybe i can finally create my own map...woo hoo!!
I have notcied that if i add an item/items then create a pk3 file for it...and then put that pk3 into mainta that itll show up when i hit editscript...now im assuming that i either have to make a pk3 file everytime i add an object..or once i create the first pk3 then i can go into editscript and make changes then save...then restart..and tsee the new items ive added!!
Thx again for the help...i love learnin' this srciptin' stuff and once thats done maybe i can finally create my own map...woo hoo!!

