Page 1 of 1

Fire

Posted: Sun Mar 19, 2006 5:34 pm
by walks
I've put some fire on my map with a damage trigger across them but it doesn't hurt the players. Anyone know how this trigger should work?

Posted: Sun Mar 19, 2006 9:12 pm
by neillomax
Try this. May or may not work. Been a long time since I did this stuff. Put you own "origin" location in. Play with trigger set size til you get it right.

IF I MISSED ANYTHING, PLEASE FEEL FREE TO ADD TO THIS.....ANYBODY........



local.trig = spawn trigger_multiple
local.trig origin ( -642 3115 -427 )
local.trig setsize ( 0 0 0 ) ( 0 60 100 )
local.trig setthread _mythread
local.trig wait 0.05 // How often the trig acts
local.trig delay 0 // How long before trig acts


I think, where the 60 is, is width, and where the 100 is, is length....maybe

/////////////////////////////////////////////

Here's the original I worked from:

Spawn a trigger (trigger_multiple) surrounding the area you want to use to hurt
(using origin and setsize) and assign a thread (setthread) that will be called
when the area is entered. Once this happens, the thread will be called with
parm.other set to the player. You can then cause hurt or anything else you want
to do on 'em.

Something like:

local.trig = spawn trigger_multiple
local.trig origin ( x y z )
local.trig setsize ( minx miny minz ) ( maxx maxy maxz )
local.trig setthread _mythread
local.trig wait 0.05 // How often the trig acts
local.trig delay 0 // How long before trig acts

...

_mythread:
local.player = parm.other
local.player hurt 10 // Cause 10 hurt every time
end

--[MC] Hammer




Is this how it should look then:

//Allie Map Fix
local.wire = spawn script_model
local.wire model "static/barbwire_long_two_post.tik"
local.wire.origin = ( 3279.00 -82.00 384.00 )
local.wire.angles = (0 0 0)
local.wire.scale = 0.70
local.wire solid

local.trig = spawn trigger_multiple
local.trig origin ( 3279.00 -82.00 384.00 )
local.trig setsize ( 0.00 0.00 0.00 ) ( 64.00 448.00 128.00 )
local.trig setthread _mythread
local.trig wait 0.05 // How often the trig acts
local.trig delay 0 // How long before trig acts

_mythread:
local.player = parm.other
local.player hurt 10 // Cause 10 hurt every time

I just kept everything as you had originally written it, seems simpler
that way. Thanks again for your help.

Posted: Tue Mar 21, 2006 9:41 pm
by XenoPHoXx_NL
why not do this>>
The Trigger_hurt doesnt work in Mohaa without scripting
it will work with spearhead and if im right breakthrough
this tut will work with alittle scripting not that much but still a great way of doing it

http://gronnevik.se/rjukan/index.php?n= ... lumeDamage