Scipting objects problem!
Posted: Fri May 21, 2004 7:42 pm
Here is my "MODDED" algeirs script!
well, i just cant spawn the flak88 and stuka at the same time. If i moved the stuka part the STUKA wouldnt show up but the flak WOULD show up but if i moved the flak88 part the stuka would APPEAR and the FLAK88 would go BYE BYE! i am so confused! somebody help me plz!
Code: Select all
// NORTH AFRIKA
// ARCHITECTURE: NED, POWZER
// SCRIPTING: POWZER
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Algiers"
setcvar "g_obj_alliedtext2" "Sweet!"
setcvar "g_obj_alliedtext3" "I added Fog!"
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm7"
exec global/friendly.scr
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/terrain2.scr
exec global/ambient.scr terrain2
$world farplane_color "0.011765 0.254902 0.494118" //The color you want your fog! A good way to get this is to go //in MOHRadiant and hit "k" an pic a color, it will give you the 3 numbers u need!
level.fogplane = 6500 //Just tells how far u'r guy can see. The lower the thicker the fog is, the higher the less //fog there is!
$world farplane level.fogplane// <---Just lets MOH know u have fog haha!
spawn_a_flak88:
// Spawn a script model and give it a targetname
local.flak = spawn script_model "targetname" "flak88"
// Set the model to be drawn/used
local.flak model "statweapons/flak88turret.tik"
// Set where it should be
local.flak.origin = ( -2941.84 1739.59 284.13 )
// Set where it should point at
local.flak.angles = ( 0.47 89.99 0.00 )
// Set how big it should be
local.flak.scale = 0.50
// Create the trigger and give it a targetname
local.trigger = spawn trigger_use "setthread" "fire_flak88"
// Set where it should be
local.trigger.origin = ( -2947.92 1656.96 284.13 )
// Set the size of it
local.trigger setsize ( -100 -100 -100 ) ( 100 100 100 )
end
spawn_a_stuka:
local.stuka = spawn script_model
//hmm i hope this works
local.stuka model "vehicles/stuka-desert.tik"
//spawning stuff
local.stuka.origin = ( -2920.51 2759.36 537.12 )
//painting places hehehe
local.stuka.angles = ( 8.31 -92.38 0.00 )
//size aint everything but this is supersized
local.stuka.scale = 2.0
end
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
exec global/door_locked.scr::lock
level.script = maps/dm/mohdm7.scr
exec global/ambient.scr mohdm7
level waittill spawn
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