Page 1 of 1

trap scripting

Posted: Thu May 20, 2004 5:21 pm
by agentmad007
hi all ,

i wondered how to a trap that use falling stone .

i want to make a stone falling when you walk on it ....and die just after


so i made the stone script_object k/v targetname: falling_stone

a trigger multiple that at the top of the stone with k/v setthread:trap

and a trigger hurt down of the stone with k/v damage:50

script:

Code: Select all


main:


level waittill prespawn 

	exec global/DMprecache.scr 
	level.script = "maps/dm/trap.scr" 

level waittill spawn 

end



trap:

$falling_stone movesouth 64

end

[code]

But nothing happened i m not a scripter , but i tried .....can someone explain me the good way to do it 

thx

Posted: Thu May 20, 2004 5:31 pm
by jv_map

Code: Select all

trap:
  $falling_stone physics_on
end
8-)

Posted: Thu May 20, 2004 5:44 pm
by agentmad007
hehe really cool that work , but my trigger hurt dont kill me anymore :(

key value damage :50


an idea ? or the damage can be only done by scripting ?

Posted: Thu May 20, 2004 5:45 pm
by jv_map
trigger_hurt doesn't work in mohaa says Vexar :(

Posted: Thu May 20, 2004 5:47 pm
by agentmad007
ouch ! :shock: is t posible to script a damage for the player (trigger mlultiple no ? )

and trigger hurt work on moh breakthrough ?

Posted: Thu May 20, 2004 5:58 pm
by lizardkid
ah, try

$falling_stone volumedamage 200

right by $falling_stone physics_on

Posted: Thu May 20, 2004 9:43 pm
by agentmad007
yes thx i saw it in a trap map of recycling bin :)