Cheers for that m8, ive applied some of it and i get an error in console -
(in my map)..
script error - cannot cast NULL to vector
script error command applied to NULL listener
and a lot of similar messages
any way of gettin summat similar to work with this...
level waittill prespawn
$world farplane 4800
$world farplane_color (0.03 0.05 0.09)
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level.script = maps/dm/pegasusbridge
exec global/ambient.scr
//thread sound
thread cobratext
thread random_explosions
local.master = spawn scriptmaster
//local.master aliascache sound/amb_pegasusnight.mp3 soundparms 0.8 0.2 0.7 0.5 160 3000 auto loaded maps "p dm obj"
local.master aliascache arty_leadin2 sound/weapons/explo/Exp_LeadIn_07.wav soundparms 0.5 0.2 0.7 0.5 160 1600 auto loaded maps "p dm obj"
local.master aliascache arty_leadin3 sound/weapons/explo/Exp_LeadIn_08.wav soundparms 0.5 0.2 0.7 0.5 160 1600 auto loaded maps "p dm obj"
local.master aliascache arty_leadin4 sound/weapons/explo/Exp_LeadIn_09.wav soundparms 0.5 0.2 0.7 0.5 160 1600 auto loaded maps "p dm obj"
local.master aliascache arty_leadin5 sound/weapons/explo/Exp_LeadIn_11.wav soundparms 0.5 0.2 0.7 0.5 160 1600 auto loaded maps "p dm obj"
local.master aliascache arty_leadin6 sound/weapons/explo/Exp_LeadIn_12.wav soundparms 0.5 0.2 0.7 0.5 160 1600 auto loaded maps "p dm obj"
local.master aliascache arty_leadin7 sound/weapons/explo/Exp_LeadIn_13.wav soundparms 0.5 0.2 0.7 0.5 160 1600 auto loaded maps "p dm obj"
local.master aliascache arty_leadinmp1 sound/weapons/explo/Exp_LeadIn_06.wav soundparms 0.8 0.2 0.7 0.5 160 3000 auto loaded maps "p dm obj"
local.master aliascache arty_leadinmp2 sound/weapons/explo/Exp_LeadIn_07.wav soundparms 0.8 0.2 0.7 0.5 160 3000 auto loaded maps "p dm obj"
local.master aliascache arty_leadinmp3 sound/weapons/explo/Exp_LeadIn_08.wav soundparms 0.8 0.2 0.7 0.5 160 3000 auto loaded maps "p dm obj"
local.master aliascache arty_leadinmp4 sound/weapons/explo/Exp_LeadIn_09.wav soundparms 0.8 0.2 0.7 0.5 160 3000 auto loaded maps "p dm obj"
local.master aliascache arty_leadinmp5 sound/weapons/explo/Exp_LeadIn_10.wav soundparms 0.8 0.2 0.7 0.5 160 3000 auto loaded maps "p dm obj"
local.master aliascache arty_leadinmp6 sound/weapons/explo/Exp_LeadIn_11.wav soundparms 0.8 0.2 0.7 0.5 160 3000 auto loaded maps "p dm obj"
local.master aliascache arty_leadinmp7 sound/weapons/explo/Exp_LeadIn_12.wav soundparms 0.8 0.2 0.7 0.5 160 3000 auto loaded maps "p dm obj"
local.master aliascache arty_leadinmp8 sound/weapons/explo/Exp_LeadIn_13.wav soundparms 0.8 0.2 0.7 0.5 160 3000 auto loaded maps "p dm obj"
local.master aliascache arty_leadin08 sound/weapons/explo/Exp_LeadIn_07.wav soundparms 0.8 0.2 0.7 0.5 900 16000 local loaded maps "p dm obj"
local.master aliascache arty_leadin09 sound/weapons/explo/Exp_LeadIn_08.wav soundparms 0.8 0.2 0.7 0.5 900 16000 local loaded maps "p dm obj"
local.master aliascache arty_leadin10 sound/weapons/explo/Exp_LeadIn_09.wav soundparms 0.8 0.2 0.7 0.5 900 16000 local loaded maps "p dm obj"
local.master aliascache arty_leadin11 sound/weapons/explo/Exp_LeadIn_10.wav soundparms 0.8 0.2 0.7 0.5 900 16000 local loaded maps "p dm obj"
level waittill spawn
spawn script_origin "origin" ( 396 -1031 -36) "targetname" random_exploder
spawn script_origin "origin" ( -1385 -1042 -111) "targetname" random_exploder
spawn script_origin "origin" ( -447 -2150 -45) "targetname" random_exploder
spawn script_origin "origin" ( 1458 -666 -58) "targetname" random_exploder
spawn script_origin "origin" ( 395 2626 -42) "targetname" random_exploder
spawn script_origin "origin" ( -869 2187 -60) "targetname" random_exploder
spawn script_origin "origin" ( 1618 2969 -46) "targetname" random_exploder
spawn script_origin "origin" ( -458 4083 -14) "targetname" random_exploder
spawn script_origin "origin" ( 1486 3601 -51) "targetname" random_exploder
spawn script_origin "origin" ( 888 2165 -111) "targetname" random_exploder
spawn script_origin "origin" ( 2317 2642 -9) "targetname" random_exploder
spawn script_origin "origin" ( -659 -2662 -69) "targetname" random_exploder
spawn script_origin "origin" ( -829 -809 -60) "targetname" random_exploder
spawn script_origin "origin" ( 304 -1513 -54) "targetname" random_exploder
spawn script_origin "origin" ( -239 -1129 8) "targetname" random_exploder
random_explosions:
end
anything you can recommend for the random_explosions bit?
Cobra