limiting like omaha
Posted: Mon Jun 21, 2004 5:03 am
i need to know how to limit team boundarys like in the omaha maps. if this has anything to do with scripts youll have to rujn me thru it
Code: Select all
spawn_axis_kill_triggers:
// Spawn the trigger that will warn the Axis
// ( preferably on the ridge )
local.trigger = spawn trigger_multiple "setthread" "warn_axis"
// example values:
local.trigger.origin = ( 0.0 0.0 0.0 )
// example values:
local.trigger setsize ( -50 -50 -50 ) ( 50 50 50 )
// Spawn the trigger that will kill the Axis
// ( preferably just below the ridge )
local.trigger = spawn trigger_multiple "setthread" "kill_axis"
// example values:
local.trigger.origin = ( 100.0 0.0 0.0 )
// example values:
local.trigger setsize ( -50 -50 -50 ) ( 50 50 50 )
end
warn_axis:
// parm.other is the triggerer
if(parm.other.dmteam == axis) {
if(parm.other.i_have_been_warned != 1) {
parm.other.i_have_been_warned = 1
parm.other iprint "No Axis on the beach!" 1
}
}
end
kill_axis:
// parm.other is the triggerer
if(parm.other.dmteam == axis) {
parm.other stufftext "say I am a stupid and dead Axis."
wait 2 // make him wait for it :)
parm.other hurt 666
}
endCode: Select all
thread spawn_axis_kill_triggers