Page 1 of 1

shooted selectively

Posted: Sun Nov 16, 2003 8:15 pm
by Tropheus
Hie everybody.

is it possible to define the weapon allowed to shoot an object ?

I want a nebelwefer fired only by a panzerchreck and with grenades.

Thanks for your answers.

tropheus

Single

Posted: Mon Nov 17, 2003 1:54 am
by tltrude
Only for singleplyer maps using a "loadout" script.

Posted: Mon Nov 17, 2003 5:37 pm
by jv_map
I take it you mean that you want to control what kind of damage an object (entity) can take.

You can do so by simply making them 'immune' for certain kinds of damage, like:

$nebelwerfer immune bash
$nebelwerfer immune bullet
$nebelwerfer immune fast_bullet

Posted: Mon Nov 17, 2003 8:47 pm
by Tropheus
ithnaks for your answers, but i just tried it, and nothing more.

i put these lines in the main thread. ==> no change
i put in my thread ==> no change.

Why ???

i don't know. i paste my scr. if you see a mistake...
my trigger damage is called nebel_trigger.

$nebel_trigger.health=200
thread objets_caches
$nebel_trigger thread nebel_explo $nebel_trigger
level.script = "maps/test_nebel.scr"
end
////////////////////objets cach?s//////////////
objets_caches:
$nebel_d hide
end
///////////////////////////////////////////////
///////////////////explosion du nebel//////////////
nebel_explo:
self immune bash
self immune bullet
self immune fast_bullet
self immune grenade
while ($nebel_trigger.health > 100)
waitframe
local.exp1=spawn "animate/fx_explosion_tank.tik"
local.exp1.origin=$nebel.origin
local.exp1 anim start
radiusdamage $nebel.origin 75 200
$nebel remove
$nebel_d show
end

thanks for your answers.

tropheus