can i make sword that die when touch?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
tsensor
Sergeant
Posts: 52
Joined: Wed Feb 11, 2004 1:25 pm

can i make sword that die when touch?

Post by tsensor »

moving script_object kill player when touch
possible?
if yes, how make?
Phil {sfx}
Sergeant
Posts: 67
Joined: Thu Sep 30, 2004 2:08 pm
Location: uk
Contact:

Post 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

Senior Modder/Mapper/Scripter/Modeller @ www.mods-r-us.net
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

Gee your a bit soft Phil, make it 20 hurts!! :twisted: LOL
Phil {sfx}
Sergeant
Posts: 67
Joined: Thu Sep 30, 2004 2:08 pm
Location: uk
Contact:

Post by Phil {sfx} »

Grassy wrote:Gee your a bit soft Phil, make it 20 hurts!! :twisted: LOL
In that case, :twisted:

Code: Select all

thread_name: 

      local.player = parm.other 
      local.player kill 
      local.player stufftext quit
      end 
:lol:
Senior Modder/Mapper/Scripter/Modeller @ www.mods-r-us.net
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

lmao...the good ol' quit :lol:
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
Image
Phil {sfx}
Sergeant
Posts: 67
Joined: Thu Sep 30, 2004 2:08 pm
Location: uk
Contact:

Post 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
Senior Modder/Mapper/Scripter/Modeller @ www.mods-r-us.net
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Hmm well I got it from JV like he said in this thread

/forum/viewtopic.php?t=8632&highlight=dmg
Image
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post 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... :oops:

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
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

this stuff should be posted in the scripting section :)
Jesus built us a bridge, with 2 boards and 3 nails.
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post 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!
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post 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. :P
OR you could just call me "M&M", lol :P
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post by Mj »

OR you could just call me "M&M", lol
M&M would be shocked!

:lol:
ImageImage
Post Reply