Difference between revisions of "0AB0"

From GTAMods Wiki
Jump to navigation Jump to search
(Created Page)
 
(0AB0)
Line 3: Line 3:
  
 
This is a special keypress opcode, used to see if the player pressed a certain key. It is very similar to 00E1, but varies slightly; it has a wider array of keys to choose from. Here's a cleo script example:
 
This is a special keypress opcode, used to see if the player pressed a certain key. It is very similar to 00E1, but varies slightly; it has a wider array of keys to choose from. Here's a cleo script example:
 +
 +
 +
== Example ==
  
 
{$CLEO .cs}
 
{$CLEO .cs}
Line 17: Line 20:
 
jf @START
 
jf @START
 
0A93: end_custom_thread
 
0A93: end_custom_thread
 +
 +
== Other Info ==
 +
 +
  
  

Revision as of 15:46, 19 January 2009

0AB0

This is a special keypress opcode, used to see if the player pressed a certain key. It is very similar to 00E1, but varies slightly; it has a wider array of keys to choose from. Here's a cleo script example:


Example

{$CLEO .cs}

thread 'KEYPRF'

START

wait 0 ms if Player.Defined($PLAYER_CHAR) jf @START if 0AB0: key_pressed 48 jf @START 0A93: end_custom_thread

Other Info

It checks if the player pressed key 48 (1) then ends the thread. (Kinda useless but good example XD)

Here's a full keylist, credits to Indigo Rose