Cant spawn anything in Spearhead!

Post your scripting questions / solutions here

Moderator: Moderators

meowmix11
Lance Corporal
Posts: 24
Joined: Sun May 02, 2004 6:22 pm

Post by meowmix11 »

Heres my script for map mohdm1:

Code: Select all

// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "mohdm1"


	// call additional stuff for playing this map round based is needed
	if(level.roundbased)
		thread roundbasedthread
		
	level waitTill prespawn

	//*** Precache Dm Stuff
	exec global/DMprecache.scr

	level.script = maps/dm/mohdm1.scr
	exec global/ambient.scr mohdm1

	//exec global/ambient.scr mohdm2

	//$world farplane 5000
	//$world farplane_color (.333 .333 .329)


	level waittill spawn

thread spawncrate 

spawncrate: 

local.static = spawn script_model 
local.static model "static/indycrate.tik" 
local.static.origin = ( -591.85 -647.96 668.13 ) 
local.static.angles = ( 0 0 0 ) 
local.static solid 

end 


	$world farclipoverride -1

end

//-----------------------------------------------------------------------------

roundbasedthread:

	// Can specify different scoreboard messages for round based games here.
	
	level waitTill prespawn

	level waittill spawn

	// set the parameters for this round based match
	level.dmrespawning = 0 // 1 or 0
	level.dmroundlimit = 5 // round time limit in minutes
	level.clockside = kills // set to axis, allies, kills, or draw

	level waittill roundstart

end
I hope this helps!
meowmix11
Lance Corporal
Posts: 24
Joined: Sun May 02, 2004 6:22 pm

Wee! I got the last thing to work!

Post by meowmix11 »

I just put my map script file in .pk3 format and it worked! :oops: :D

Thanks for your help anyway,
meowmix11
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

ok the only thing is this part of your script
level waittill spawn

thread spawncrate // no end after this so the main thread just runs into the spawncrate thread if you want you can remove this and the spawncrate:

spawncrate:

local.static = spawn script_model
local.static model "static/indycrate.tik"
local.static.origin = ( -591.85 -647.96 668.13 )
local.static.angles = ( 0 0 0 )
local.static solid

end
// no thread name here and this part of the script not used because of the end above , this should go at the top in the main thread if you need it .

$world farclipoverride -1

end
Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

meowmix11 wrote:
blue60007 wrote:
meowmix11 wrote:
nope, still dosn't work :cry:
Let's try this:

Code: Select all



level waittill spawn 

thread spawncrate

spawncrate:

local.static = spawn script_model 
local.static model "static/indycrate.tik" 
local.static.origin = ( -591.85 -647.96 668.13 ) 
local.static.angles = ( 0 90 0 ) 
local.static solid 

end
Anyone for suggestions?

nope :shock:
crap! these quotes in quotes in quotes are getting HUGE!
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Post Reply