Page 1 of 1
how can you add objects to defualt map
Posted: Thu Jun 26, 2003 8:21 pm
by stuffmess2001
i want to add like a bucket to a regular map or anything like a bucket so i can learn from it.....can some one help me
Posted: Thu Jun 26, 2003 8:23 pm
by Alcoholic
add these lines:
local.myobject = spawn myentity
local.myobject.origin = (myorigins)
spawn a point entity using the classnames from mohradiant.
in the map, run to where you wanna place it, open the console, and type 'coord'. some numbers will show up. type those numbers for the origin in ().
Posted: Thu Jun 26, 2003 11:04 pm
by stuffmess2001
well do i put that in the same main script of the map or what i need like a lot of help i am new to this
Adding static objects
Posted: Fri Jun 27, 2003 5:03 am
by IvanTheTerrible
1. Download a copy of the Pakscape program--you can find it on pretty much any MOHAA website
1a. Go into the game and stand on the spot where you want to add the object. Bring up the console by typing ~ and type coord and press enter. You will get a set of coordinates in parenthesis...write these down
2. Use the pakscape program to create a new pk3 file and call it whatever you like. Create a folder within it called maps and then a folder within that folder called DM
3. Now use notepad to create a script file and place the following lines into it:
main:
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1
level waittill spawn
//Add Flourbag Stack
local.fix1 = spawn script_model
local.fix1 model "static/flourbag-stack.tik"
local.fix1.origin = ( -205.00 192.00 50.00 )
local.fix1.angles = ( 0 75 0 )
local.fix1.scale = 2.50
local.fix1 solid
end
4. Now save this text as mohdm1.scr and copy it into the Dm folder that you created in pakscape
5. Now save the pakscape project you've been working on as whatever name you want with the .pk3 extension
6. Place your newly created pk3 file into the main folder in for MOHAA and you're set
The fix1 part of the script can be anything you like. The model line contain the item you want to add--in this example a stack of flour bags. Replace the sample coordinates I have above with the ones you wrote down...good luck.
Posted: Fri Jun 27, 2003 7:32 am
by stuffmess2001
see i am trying to add this to the demo and its not working so if anyone could help
Posted: Fri Jun 27, 2003 5:07 pm
by Alcoholic
hmm shoulda said that before... i dont know if you could do it with the demo.