Posts: 240
Threads: 34
Joined: Apr 2013
Reputation:
0
03.10.2017, 03:14
(
Last edited by leon44; 04/10/2017 at 06:14 PM.
)
Hi, I have a mini derby game in my gamemode and and is missing that when a player throws other player off to water he will be as spectator, I just need that to complete it, but the player needs to be detected when is underwater and after that detection he will be auto killed.
Posts: 547
Threads: 57
Joined: Dec 2010
I've never made a detection script for something like that but something that I think can help is checking their position as whenever they're in the water, their z coord will be 0.0 or lower.
Posts: 1,661
Threads: 47
Joined: May 2013
Reputation:
0
All water sources except the water behind the dam in Las Venturas are at 0.0, so you have to check below that.
The dam's water is at ~40.0, give or take a few.
Posts: 1,661
Threads: 47
Joined: May 2013
Reputation:
0
That won't work when you're behind the Las Venturas dam.