Post your scripting questions / solutions here
Moderator: Moderators
-
small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
-
Contact:
Post
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
-
jv_map
- Site Admin
- Posts: 6521
- Joined: Tue Sep 03, 2002 2:53 pm
- Location: The Netherlands
-
Contact:
Post
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

, and otherwise the trigger is triggered again anyway. Saves one calculation

-
small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
-
Contact:
Post
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.

-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
-
Contact:
Post
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.
Admin .MAP Forums

Head above heels.