Page 1 of 1
can i make sword that die when touch?
Posted: Fri Dec 03, 2004 4:44 am
by tsensor
moving script_object kill player when touch
possible?
if yes, how make?
Posted: Fri Dec 03, 2004 10:36 am
by Phil {sfx}
just use a "setthread" and link it to something like this:
Code: Select all
thread_name:
local.player = parm.other
local.player hurt 10
end
Posted: Fri Dec 03, 2004 1:33 pm
by Grassy
Gee your a bit soft Phil, make it 20 hurts!!

LOL
Posted: Sat Dec 04, 2004 8:14 am
by Phil {sfx}
Grassy wrote:Gee your a bit soft Phil, make it 20 hurts!!

LOL
In that case,
Code: Select all
thread_name:
local.player = parm.other
local.player kill
local.player stufftext quit
end

Posted: Sat Dec 04, 2004 4:11 pm
by Green Beret
lmao...the good ol' quit

Posted: Sun Dec 05, 2004 10:23 am
by bdbodger
I think you can make a script_object and use
$mything dmg 1000
something like that should do 1000 damage to what ever touches it I think
Posted: Mon Dec 06, 2004 12:36 pm
by Phil {sfx}
tried your way bd but didnt work, was surprised cos i was sure i had used that before somewhere.
I know it works with a trig hurt, used it not long ago.
$xxxx.damage = 50 or $xxxx damage 50 or $xxxx dmg 50
Posted: Mon Dec 06, 2004 1:14 pm
by bdbodger
Hmm well I got it from JV like he said in this thread
/forum/viewtopic.php?t=8632&highlight=dmg
Posted: Mon Dec 06, 2004 9:00 pm
by Grassy
Thats better Phil..
As for the object, why not just put a trigger_hurt around it and bind it in the script if the thing moves.
Edit;
Oops I must read first...
Here is the method spawning it.. parms would still be the same in the editor.
Code: Select all
local.killbrush = spawn trigger_hurt
local.killbrush damage 10000
local.killbrush.origin = ( 2012 -4352 -124 )
local.killbrush setsize ( 0 -2816 -228 ) ( 2084 0 0 )
Grassy
Posted: Tue Dec 07, 2004 12:26 am
by MasterMind
this stuff should be posted in the scripting section

Posted: Tue Dec 07, 2004 6:51 am
by Grassy
Mastermind, I showed the method of spawning for reference. Please read the whole sentence below..
Here is the method spawning it.. parms would still be the same in the editor.
..... dont try to tell me I'm not on topic!
Posted: Tue Dec 07, 2004 2:08 pm
by MasterMind
ok, ok
but everybody gets off topic every once in a while
btw its "MasterMind" not "Mastermind". Everyone keeps calling me that,
you have to have the capital M.

OR you could just call me "M&M", lol

Posted: Tue Dec 07, 2004 2:46 pm
by Mj
OR you could just call me "M&M", lol
M&M would be shocked!
