Forum

> > Stranded II > General > Working Running Script
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Working Running Script

7 replies
To the start Previous 1 Next To the start

old Working Running Script

Smurf
User Off Offline

Quote
Here is a script to make the Player Unit,1 Sprint in 2 second bursts by clicking the Right mouse button.If you keep pressing it you keep Sprinting ,and get thirsty.So Take water with you or you will dehydrate to much.

Just paste this script in "units.inf"


### Player
#ID 1 IS RESERVED FOR THE PLAYER UNIT!
id=1
name=Player
group=human
icon=gfx\strandedguy.bmp
model=gfx\strandedguy.b3d
colxr=8
colyr=17
eyes=16
store=100
health=100
damage=3
speed=1.1
acceleration=0.05
attackrange=45
maxweight=25000
healthchange=0
script=start

on:attack2
{ timer "self",000,1,"run";}

on:run {
speech "run";
drink 0,0,-0.5,0;
player_speed 2.9;
freetimers "self";
timer "self",2000,1,"walk";}

on:walk {

player_speed 1.1;
freetimers "self";

}
edited 7×, last 25.09.10 04:34:51 am

old 3 more options

Greoz_GS
User Off Offline

Quote
Option 1: Health (or really FREESTATE!)
Option 2: Max weight to 500000 (or 5000 butterfly s)
Option 3: Super Damage.

That's it, it's look like a cheat mode (like dm).

Oh, if this works?

old Re: Working Running Script

Lion_Hearted
User Off Offline

Quote
Yeah, looks cool, haven't checked it out yet, but does anyone know how to set the "attack2" key (in other-words, right click on the mouse) to something a little more specific... as it is, you have to have your hands free of anything like a hammer or etc just to run, because special tools have a right click function.


How about, if the key that you use changes from "right click" to lets say... "e"?

old Re: Working Running Script

DannyDeth
User Off Offline

Quote
RazorBlade9 has written
Zupaman ypu are obvously a newbie plese do not ask for stuff that has nothing to do with the thread .And smurf nice work


You haven;t exactly been here your whole life either. Lol, Zupaman Don;t worry about him

old Re: Working Running Script

Antonhel
User Off Offline

Quote
Lion_Hearted has written
Yeah, looks cool, haven't checked it out yet, but does anyone know how to set the "attack2" key (in other-words, right click on the mouse) to something a little more specific... as it is, you have to have your hands free of anything like a hammer or etc just to run, because special tools have a right click function.


How about, if the key that you use changes from "right click" to lets say... "e"?


Let's also say...the shift key? And also, nice run script.

old Re: Working Running Script

Indiana266
User Off Offline

Quote
@Antonhel: MM made it the shift key aswell.
@Antonhel: See in that script, the on :attack2 run, check what key shift is named in the keys.inf then change attack2 to whatever shift is.

Err, I probably sound stupid for this but, I can't get it to work, I pasted it in the player unit but it doesn't work..
edited 1×, last 02.11.10 03:50:54 am
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview