You are not logged in.
Pages: 1
Hi guys I am new here and I created this topic where you can post questions and other users (hopefully) answer them.
Offline
Ok right now its about a week ago since i got cleo working on my pc.
My first question is the following:
00E1: key_pressed 0 4
4 stands for the action-key (usually tab)
now can somebody please help me and tell me what i have to do if i want to happen something in the game when i press (as an example) the key "t"?????
and can somebody post a list of the keys and the numbers which belong together?????
like this:
4 = action(tab)
? = a
? = b
? = c
. ... .
. ... .
. ... .
I would be very glad if someone would be able to help me!
Offline
Use opcode 0AB0 that lets you to check any key. The parameter is a virtual key code, you can find full list of keycodes in the Sanny Builder help (F12 -> CLEO3 ->CLEO 3 opcodes -> 0AB0)
For example,
0AB0: key_pressed 0x73
this checks if F4 is pressed.
Offline
thank you Seemann and thank you Sanchez it works perfekt
Offline
another question that I have is if someone of you knows how to make a script to change clothes
i made one by my self:
first you go into the red circle and you are teleported into one of the savehouses wehere the dressingroom is when you come out again you are teleported infront of the red circle where you started
I wanted to ask you guys if there is an other way to do this?????
Offline
Player.SetClothes($PLAYER_CHAR, "TEXTURE", "MODEL", BODY_PART)
Player.Build($PLAYER_CHAR)
Its only to change some close. If you want to make a ability what clothes to choose you need use panels with list of clithes like (IMHO):
08D4: $Panel = create_panel_with_title 'IE09' position 29.0 170.0 width 180.0 columns 1 interactive 1 background 1 alignment 0
08DB: set_panel $Panel column 0 header 'DUMMY' data 'IE16' 'IE10' 'IE11' 'IE12' 'IE13' 'IE14' 'IE15' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'
From SB help
-=YariK=-
http://my-mods.org.ua/
Offline
thank you for your reply, Yarik
I allready knew the first example, you gave me
but I didnt understand the second one
It would be great if you could transform it like this:
If I go into a red circle at position 809.9413 -2779.116 9.328698 I want to change clothes just like in a dressing room.
Offline
Do you want to give CJ some certain clothe or to show a table where can choose the clothe(like in that room)?
-=YariK=-
http://my-mods.org.ua/
Offline
exactly what I am looking for: show a table where I can choose the clothes (like in the dressing room)
that would be great
Offline
Its better for you to find this part (the changing clothes) in original main.scm
At least I think so
Also from SB help the example of using Panel (table what you are looking for)
:PANEL thread 'PANEL' :PANEL_1 wait 0 01B4: toggle_player $PLAYER_CHAR can_move 0 // обездвиживаем игрока 0512: show_permanent_text_box 'IE20' //выводим text_box 0581: toggle_radar 0 // убираем радар 08D4: $PANEL = create_panel_with_title 'IE09' position 29.0 170.0 width 180.0 columns 1 interactive 1 background 1 alignment 0 08DB: set_panel $PANEL column 0 header 'DUMMY' data 'IE16' 'IE10' 'IE11' 'IE12' 'IE13' 'IE14' 'IE15' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' :PANEL_2 wait 0 if 00E1: player 0 pressed_key 16 // если нажата клавиша «ПРОБЕЛ» jf @PANEL_9 //если нет, то переходим на метку PANEL_9 08D7: 0@ = panel $Panel active_row // получаем номер строки if 0@ == 0 //если выбрана первая строка jf @PANEL_3 // если нет, то переходим на метку PANEL_3 00BE: text_clear_all // убираем весь текст 00BA: show_text_styled GXT 'MTG02F' time 3000 style 5 // выводим текс на экран jump @PANEL_9 // переходим на метку PANEL_9 :PANEL_3 if 0@ == 1 // если выбрана вторая строка jf @PANEL_4 00BE: text_clear_all 00BA: show_text_styled GXT 'MTIME1' time 3000 style 5 jump @PANEL_9 :PANEL_4 if 0@ == 2 jf @PANEL_5 00BE: text_clear_all 00BA: show_text_styled GXT 'MTIME2' time 3000 style 5 jump @PANEL_9 :PANEL_5 if 0@ == 3 jf @PANEL_6 00BE: text_clear_all 00BA: show_text_styled GXT 'MTIME3' time 3000 style 5 jump @PANEL_9 :PANEL_6 if 0@ == 4 jf @PANEL_7 00BE: text_clear_all 00BA: show_text_styled GXT 'MTIME4' time 3000 style 5 jump @PANEL_9 :PANEL_7 if 0@ == 5 jf @PANEL_8 00BE: text_clear_all 00BA: show_text_styled GXT 'MTIME5' time 3000 style 5 jump @PANEL_9 :PANEL_8 if 0@ == 6 // если выбрана седьмая строка jf @PANEL_9 00BE: text_clear_all 00BA: show_text_styled GXT 'MTIME6' time 3000 style 5 :PANEL_9 wait 0 if 00E1: player 0 pressed_key 15 jf @PANEL_2 //если не нажата клавиша F или ENTER 0581: toggle_radar 1 // возвращаем радар 03E6: remove_text_box // убираем text_box 08DA: remove_panel $PANEL // удаляем панель 01B4: toggle_player $PLAYER_CHAR can_move 1 // возвращаем управление игроком end_thread
-=YariK=-
http://my-mods.org.ua/
Offline
i didnt try this yet but thank you yarek for trying to help me
so here is my next question:
how can you use INFINITE nos (nitro) (makes you drive faster in a car) in a car only by pressing the key for "shooting a weapon"???
Offline
Pages: 1