grr i had it but...

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
¤gunner¤
Lance Corporal
Posts: 10
Joined: Fri Sep 01, 2006 3:43 am
Contact:

grr i had it but...

Post by ¤gunner¤ »

i had it working but when i added more thangs its not showing up iny more and i have looked to see if i have done something wrong but i cant find iny thang here it is

// DESTROYED VILLAGE
// ARCHITECTURE: NED
// SCRIPTING: NED

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Destroyed Village"
setcvar "g_obj_alliedtext2" " Modded By"
setcvar "g_obj_alliedtext3" "-Method- *$* guNNer"
setcvar "g_obj_axistext1" " **Join Us At"
setcvar "g_obj_axistext2" "www.method-clan.com"
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "mohdm2"

// 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

exec global/door_locked.scr::lock
level.script = maps/dm/mohdm2.scr
exec global/ambient.scr mohdm2

exec maps/dm/map fixs/mohdm2.scr

level waittill spawn

thread myspawn
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

myspawn:

local.thing = spawn script_model

local.thing model "static/bodies_tarp.tik"

local.thing.origin = ( -2522.24 -2932.19 557.38 )
local.thing.angles = ( 21.71 34.11 0.00 )

local.thing = spawn script_model

local.thing model "static/vehicle_shermantank_dead.tik"

local.thing.origin = ( -1284.05 721.96 20.74 )
local.thing.angles = ( 8.90 -170.47 0.00 )

local.thing = spawn script_model

local.thing model "static/vehicle_stuka.tik"

local.thing.origin = ( -2536.33 -2071.45 805.53 )
local.thing.angles = ( 20.78. 135.59 0.00 )

local.thing = spawn script_model

local.thing model "vehicles/european_car_tan.tik"

local.thing.origin = ( 454.21 -308.08 -77.98 )
local.thing.angles = ( -4.41 61.84 0.00 )

local.thing = spawn script_model

local.thing model "emitters/plane_smoke.tik"

local.thing.origin = ( -322.80 -1395.88 -8.78 )
local.thing.angles = ( 2.31 6.59 0.00 )
end
¤copy my name to help me spread around¤
†}®’{€
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

Open up one of the original scripts and have a look. "end" appears too much in your script. Also, When I add items to map scripts, I always put them in after "wait til spawn"........ nowhere else.


The " thread my spawn"...thing..... if you made a spawn script, I'd either make a "global" script and folder and call on it to exec it, or I'd add my custom spawns in the script as I would anything else.
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

maybe make the second and 3rd objects local.thing1
and local.thing2 ect...
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

his "end"s signify the end of threads, there's only three in there and since there's three threads and they're all fine with syntax and semantics that isn't it.

yeah i think you're having some pointer shuffling problems, assign more variables like beret said is probably the easiest way, there's a number of other iffy things i could suggest that probably wouldn't work, so just try that first.

out of curiosity, do any of them appear?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

I think the ( " ) in your script isn't helping. Also, make sure the coords are correct. Try this script.

local.fix1 = spawn script_model
local.fix1 model static/indycrate.tik
local.fix1.origin = ( )
local.fix1.angles = ( )
local.fix1.scale = 1.0
local.fix1 solid
Post Reply