trap scripting

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

trap scripting

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Code: Select all

trap:
  $falling_stone physics_on
end
8-)
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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 ?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

trigger_hurt doesn't work in mohaa says Vexar :(
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

ouch ! :shock: is t posible to script a damage for the player (trigger mlultiple no ? )

and trigger hurt work on moh breakthrough ?
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

ah, try

$falling_stone volumedamage 200

right by $falling_stone physics_on
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

yes thx i saw it in a trap map of recycling bin :)
Post Reply