Jump to content

Breath


mjau

Recommended Posts

Posted

is there any way to cancel the breathign when ur underwater ?

I wanna make my own diver system so i can add a timer to use as breath

Posted

Use the pedStats, I am sure you can handle it yourself aswell.

setPedStat 

Put the stamina level to low on everyone, and then put up a timer for it to increase the level.

Posted

Will that cancel the breathing underwater ?

Edit: i dont think you got me right i mean i am making a diver job where you can dive and get things, for that i will need to cancel the breathing underwater and make my own system for breathing but how can i cancel breath ?

Posted

I don't think you can "cancel" the breath.

You can hide it with showPlayerHudComponent and maybe use cancelEvent() onClientPlayerDamage, when the player is underwater.

Posted

Doesn't cancelEvent in onClientPlayerDamage do the job? Death reasons in this list are given as a weapon ID when player dies, so if I get it correctly, they should also be given as a weapon ID when the player gets damaged.

Posted

ok but if i use isPedInWater that would make him impossible to kill for the cops when he is in water in a rpg server ?

Edit forget it i just do if attacker == player then blahblhablah

Posted

i'm interested in knowing if this would still have the drowning noises even though the event is cancelled. I know the superman resource prevents drowning when your flying. might be worth seeing how that's done.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...