#1 12-07-2013 18:39

Mark
Registered: 12-07-2013
Posts: 2

What are the keystrokes? [Newb!]

Hello. I wonder what the keystrokes are to activate and deactivate this CLEO script.

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'SIT' 
0A95: enable_thread_saving 

:SIT_13
wait 100 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @SIT_330 
if and
   Actor.Stopped($PLAYER_ACTOR)
8965:   not actor $PLAYER_ACTOR swimming 
   not Actor.Driving($PLAYER_ACTOR)
else_jump @SIT_330 
if and
00E1:   player 0 pressed_key 5 
00E1:   player 0 pressed_key 11 
else_jump @SIT_330 
04ED: load_animation "MISC" 
0@ = 0 

:SIT_97
if 
84EE:   not animation "MISC" loaded 
else_jump @SIT_127 
wait 0 
jump @SIT_97 

:SIT_127
0605: actor $PLAYER_ACTOR perform_animation_sequence "SEAT_TALK_01" IFP_file "MISC" 4.0 loop 0 0 0 0 time 1000 // versionA 
wait 100 
0605: actor $PLAYER_ACTOR perform_animation_sequence "SEAT_IDLE" IFP_file "PED" 4.0 loop 1 0 0 0 time -1 // versionA 
0@ = 1 
015D: set_gamespeed 1.0 

:SIT_222
wait 100 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @SIT_222 
if and
  0@ == 1 
00E1:   player 0 pressed_key 5 
00E1:   player 0 pressed_key 10 
else_jump @SIT_222 
015D: set_gamespeed 1.0 
0605: actor $PLAYER_ACTOR perform_animation_sequence "SEAT_WATCH" IFP_file "MISC" 4.0 loop 0 0 0 0 time 0 // versionA 
04EF: release_animation "MISC" 
wait 1000 

:SIT_330
if 
jump @SIT_13

The key strokes are obviously

To activate:
00E1:   player 0 pressed_key 5
00E1:   player 0 pressed_key 11

To deactivate:
00E1:   player 0 pressed_key 5
00E1:   player 0 pressed_key 10

But I have no idea which buttons those are. Is there anyway I can figure out that?

Yes, I'm completely new to CLEO scripts so don't blame me D:

Last edited by Mark (12-07-2013 18:39)

Offline

#2 12-07-2013 18:50

НикИТОС
Registered: 05-06-2013
Posts: 133
Website

Re: What are the keystrokes? [Newb!]

Key 5 is previos weapon key (Q), key 10 is N, key 11 is Y.

Offline

#3 12-07-2013 20:12

Seemann
Registered: 07-08-2006
Posts: 2,155

Re: What are the keystrokes? [Newb!]

@Mark - help(F12)->SCM Documentation->GTA SA->Keypress numbers

Offline

#4 12-07-2013 20:22

Mark
Registered: 12-07-2013
Posts: 2

Re: What are the keystrokes? [Newb!]

@НикИТОС

Oh damn, it works! Thanks lad. <3

@Seemann

Yes, I tried that, however I wasn't able to connect 10 and 11 to N and Y, Guess I'm just blind.

Question solved, Thanks again! <3

You may lock this topic.

Offline

Board footer

Powered by FluxBB