trigger wont trigger
Posted: Mon Mar 07, 2005 12:24 am
My trigger_multiple jsut wont trigger! Im making a thing where you hit a tirgger, the bomb attatches to the buys head nad he goes and runs int oa dude and he explodes and gets a lot of kills...
well heres the script..(updated)
ok.. the $Sstat spawns ok...
the light... yes it wokrs
but the suicide trigger doesnt seem to go off... could you tell me why?
my thread suicide_bomber is after prespawn
PS to all you eople annoyed at me:
ill shuttap ok?
im just about as stupid as the guy in my avatar looks
well heres the script..(updated)
Code: Select all
suicide_bomber:
local.suicidestat = spawn animate/pulse_explosive_pickup.tik
local.suicidestat.origin = ( )
local.suicidestat.angles = ( )
local.suicidestat.scale = 5
//local.suicidestat rotatey 90 }\
//local.suicidestat rotatex 120 } problematic... edited out
//local.suicidestat rotatez 70 }/
///////////////////////////////////////////////////////////
local.suicidestatlight = spawn fx/dummy.tik
local.suicidestatlight.origin = local.suicidestat.origin
local.suicidestatlight light 1 1 0 500
local.suicidestatlight lighton
////////////////////////////////////////////////////////
local.suicidetrigga = spawn trigger_use
local.suicidetrigga.origin = local.suicidestat.origin
local.suicidetrigga setsize ( 100 100 100 ) ( -100 -100 -100 )
local.suicidetrigga setthread suicide_playa
end
//////////////////////////////////////////////////////////////////
suicide_playa:
/////////////////////////////////////////////////////
local.bomberhead = parm.other
local.bomberhead.targetname = bomberhead
//////////////////////////////////////////////////////////
if (local.bomberhead.suicideon != 1)
{
local.bomberhead.suicideon = 1
local.static = spawn script_model
local.static model "items/explosive.tik"
local.static notsolid
local.static.scale= 3
local.static.origin = (local.player.origin + ( 0 0 96 ))
local.static glue local.bomberhead
if ( local.bomberhead.dmteam == allies )
{
local.bomberhead stufftext "say ********WE'VE GOT ANOTHER ALLIED BOMBERHEAD ON THE LOOSE***********!!!! "
}
if ( local.bomberhead.dmteam == axis )
{
local.bomberhead stufftext "say ********WE'VE GOT ANOTHER AXIS BOMBERHEAD ON THE LOOSE***********!!!! "
}
////////////////////////////////////////////////////////////////////
local.locotrig = spawn trigger_multiple
local.locotrig.origin = local.bomberhead.origin
local.locotrig setsize ( 82 82 82 ) ( -82 -82 -82 )
local.locotrig setthread killradius
////////////////////////////////////////////////////////////////
while( local.bomberhead.health == 0 )
{
local.bomberhead.suicideon = 0
local.static remove
local.locotrig remove
}
end
}
////////////////////////////////////////////////////////////////////
killradius:
if (parm.other.dmteam != $bomberhead.dmteam )
{
local.blastrigger = spawn trigger_multiple
local.blastrigger.origin = $bomberhead.origin
local.blastrigger setsize ( 1000 1000 1000 ) ( -1000 -1000 -1000 )
local.blastrigger volumedamage 10000
}
end
////////////////////////////////////////////////////////////////the light... yes it wokrs
but the suicide trigger doesnt seem to go off... could you tell me why?
my thread suicide_bomber is after prespawn
PS to all you eople annoyed at me:
ill shuttap ok?
im just about as stupid as the guy in my avatar looks