Forum

> > Stranded II > General > How to breath underwater
Forums overviewStranded II overviewGeneral overviewLog in to reply

English How to breath underwater

11 replies
To the start Previous 1 Next To the start

old How to breath underwater

superckool
User Off Offline

Quote
I'm in the middle of making a scuba gear item, but how do I set it so that the player can breath underwater, can someone help me? This is very frustrating.

old Re: How to breath underwater

DC
Admin Off Offline

Quote
use the script command s2 cmd air

and/or open game.inf and change the line
dive_time=20000
(but this one is probably only an option when making a mod)

old Re: How to breath underwater

DC
Admin Off Offline

Quote
uhm.. I guess you did it wrong. too bad that you didn't show your script because it would make things much easier...

there's actually not much you can do wrong. you only need to execute that single command properly with a correct parameter.
1
air 10000;
for example will give you air for 10,000 milliseconds. that are 10 seconds (1,000 ms = 1 second)

old Re: How to breath underwater

superckool
User Off Offline

Quote
I know what I did wrong... I set it to -20000 on accident, its fixed now, also I don't think this needs a new topic, but is there a way to make the player fall slowly throgh the air, like using a parachute?

old Re: How to breath underwater

DC
Admin Off Offline

Quote
you could move the player upwards a bit while he is falling. so it looks like he is falling slower. this might lead to a quite jerky and unclean result though...

old Re: How to breath underwater

Vectarrio
User Off Offline

Quote
Pupp3t has written
You cant change the player's speed with a script ingame rite?

You can add state "speed" - it makes speed faster.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview