mjau Posted December 5, 2011 Share Posted December 5, 2011 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 Link to comment
myonlake Posted December 5, 2011 Share Posted December 5, 2011 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. Link to comment
mjau Posted December 5, 2011 Author Share Posted December 5, 2011 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 ? Link to comment
Castillo Posted December 5, 2011 Share Posted December 5, 2011 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. Link to comment
DiSaMe Posted December 5, 2011 Share Posted December 5, 2011 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. Link to comment
mjau Posted December 5, 2011 Author Share Posted December 5, 2011 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 Link to comment
Slothman Posted December 6, 2011 Share Posted December 6, 2011 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now