Hi guys
I had coded a very basic water script for testing purpose.
function plrinwater_init(e)
end
function plrinwater_main(e)
if GetGamePlayerControlInWaterState() == 1 then
SetGamePlayerControlUnderwater() -- player died underwater
SetUnderwaterOn()
Prompt("Player in water")
else
SetUnderwaterOff()
Prompt("Player out water")
end
end
It works fine, except for a small detail, player died when underwater.
Since "
command used by the default player control mechanism" do not tell nothing to me, I had used the most likely to be the accurate one "SetGamePlayerControlUnderwater()", with not to avail.
am I missing something?
Thanks in advance for all tips
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4