English 2-4 use for same item?

4 replies
Goto Page
To the start Previous 1 Next To the start
08.03.12 04:36:12 am
Up
Andrew_k_NZ
User
Offline Off
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`
08.03.12 04:41:43 am
Up
Corvallis5
User
Offline Off
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.
STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STR
08.03.12 08:28:46 am
Up
Andrew_k_NZ
User
Offline Off
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
08.03.12 09:23:19 pm
Up
Stranded_Guy2910
User
Offline Off
user Andrew_k_NZ has written:
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):

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


You can also add some variables for use differents dialogues depending on the situation.
09.03.12 08:00:07 am
Up
Andrew_k_NZ
User
Offline Off
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
To the start Previous 1 Next To the start