Page 1 of 1

my Death script needs some work

Posted: Thu Sep 11, 2003 3:01 am
by small_sumo
I have a trigger near the water around the hood that does settread yer_ded and in my script I have.

end

yer_ded:

$player hurt ($player.health+1)

end

But its kinda faulty, I know there is drowning scripts out there but I just want the player to die. This is obj btw not single player.

Thanks

Posted: Thu Sep 11, 2003 5:41 am
by jv_map
$player

should be

parm.other

in both instances.

$player.health + 1

may be replaced by

101 (or 100)

as the player's health won't be more than that :wink:, and otherwise the trigger is triggered again anyway. Saves one calculation :)

Posted: Thu Sep 11, 2003 6:33 am
by small_sumo
So.......

end

yer_ded:

parm.other hurt 101

end

is that it?
And do I need to have sethread yer_ded earlier in the script like at prespawn or something?

Thanks JV.

:)

Posted: Thu Sep 11, 2003 10:47 am
by Bjarne BZR
small_sumo wrote:is that it?
And do I need to have sethread yer_ded earlier in the script like at prespawn or something?
I suppose you could, but I'd set it on the trigger in Radiant.