Difference between revisions of "0901"

From GTAMods Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0901=2,%1d% %2d%
+
| games      = {{Icon|SA}}
 +
| command    = SET_PLAYER_JUMP_BUTTON
 
| description = Sets the player's ability to use the jump key
 
| description = Sets the player's ability to use the jump key
| p1          = Player handle
+
| syntax1    = 0901: enable_player [''player handle''] jump_key [''int'']
| p2          = Flag (0 = disable key, 1 = enable key)
+
| p1t        = [''player handle'']
| game        = [[San Andreas]]
+
| p1d        = The [[0053|handle of the player]]
 +
| p2t        = [''int'']
 +
| p2d        = 0 = disable button, 1 = enable button (default)
 
}}
 
}}
This opcode can be used to disable the functionality of the jump key in the game. The jump key is [[00E1|key number]] 14 on foot. Disabling it will disable any actions related to the key, including jumping and climbing.
 
  
==Keywords==
+
This opcode can be used to disable the functionality of the jump key in the game. The jump key is [[00E1|button 14]] on foot. Disabling it will disable any actions related to the key, including jumping and climbing.
set, toggle, player, jump
+
 
 +
== Keywords ==
 +
set, toggle, player, jump, button

Latest revision as of 04:14, 4 December 2016

San Andreas SET_PLAYER_JUMP_BUTTON


Description
Sets the player's ability to use the jump key
Syntax
0901: enable_player [player handle] jump_key [int]
Parameter
[player handle]
The handle of the player
[int]
0 = disable button, 1 = enable button (default)

This opcode can be used to disable the functionality of the jump key in the game. The jump key is button 14 on foot. Disabling it will disable any actions related to the key, including jumping and climbing.

Keywords

set, toggle, player, jump, button