Forum

> > Stranded II > General > 2-4 use for same item?
ForenübersichtStranded II-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch 2-4 use for same item?

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt 2-4 use for same item?

Andrew_k_NZ
User Off Offline

Zitieren
ok so im making a new mod and i need a pocket knife that has more then one use i want it to be able to be thrown (mouse 1) and i would also like it to be able to pick lock (p key) stab (mouse 2) i would really like if you guys could help me because i want to show the haters that i will make this mod


thank you for reading this
from `Andrew`

alt Re: 2-4 use for same item?

Corvallis5
User Off Offline

Zitieren
well, this should be in the 'scripting section' but heres my answer.

for left mouse button:

on:attack1 {
script;
}

for right mouse button:

on:attack2 {
script;
}

for custom keys
in the game.inf add a new key (search for how to do it)
and make it do an event say 'lala' for when 'p' is pressed.

so then for when 'p' is pressed:
on:lala {
script;
}

hopefully this helps, but you will have to figure out the script by yourself, just look at the database of commands and read all the posts in the scripting forum for how to do this and that.

alt Re: 2-4 use for same item?

Andrew_k_NZ
User Off Offline

Zitieren
thank you for your help and i did try to put in the scrpitng section but i came up with the message "you have to wait bla bla bla befor you can make a new topic" and when the time ran out i clicked try again and wrote what i wanted and bam is in this section


and do you know how to make a unit call my trader scrpit or do i have to put that under on=use in the unif.inf and im posting a video soon on a robot unit (puppet gave me permission) so i turned it into a driveable unit im working on making it shoot but i need it to shoot from two pointss on the model thanks again

alt Re: 2-4 use for same item?

Stranded_Guy2910
User Off Offline

Zitieren
user Andrew_k_NZ hat geschrieben
thank you for your help and i did try to put in the scrpitng section but i came up with the message "you have to wait bla bla bla befor you can make a new topic" and when the time ran out i clicked try again and wrote what i wanted and bam is in this section


and do you know how to make a unit call my trader scrpit or do i have to put that under on=use in the unif.inf and im posting a video soon on a robot unit (puppet gave me permission) so i turned it into a driveable unit im working on making it shoot but i need it to shoot from two pointss on the model thanks again


To call a trade script put it in the unit script in the map or in the unit.inf (in the map it'll be used only in your map, in the unit.inf it'll be in every unit until in the ones added for other player in an created map):

1
2
3
on:use {
	   dialogue "first page","folder";
}

You can also add some variables for use differents dialogues depending on the situation.

alt Re: 2-4 use for same item?

Andrew_k_NZ
User Off Offline

Zitieren
thank you for your help and i wish to say that my video was good but when i was playing debut didnt record it so ill get some pics up soon
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtStranded II-ÜbersichtForenübersicht