Difference between revisions of "03EE"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{Icon|trilogy}} <hr /> '''Description''' : Checks if the player character is controllable '''Syntax''' : 03EE:   player [''player handle''] controllable '''Parameter''' : […')
 
m
Line 9: Line 9:
 
:: The handle of the player
 
:: The handle of the player
  
This opcode returns true if the player is controllable. The player is controllable if the animation sequences of the player character can be controlled through input keys. Animation sequences that do not allow direct control of the player character (i.e. falling through the air, entering a vehicle, ejecting from a vehicle, death) are considered not controllable and the opcode would return false. Opcodes that freezes control of the character ([[01B4]]) do not apply. If controls are frozen but the animation would otherwise permit direct control of the character, the opcode will still return true.
+
This opcode returns true if the player is controllable. The player is controllable if the animation sequences of the player character can be controlled through input keys. Animation sequences that do not allow direct control of the player character (i.e. falling through the air, entering a vehicle, ejecting from a vehicle, death, opcode [[01B4]]) are considered not controllable and the opcode would return false.
  
 
== Example ==
 
== Example ==

Revision as of 22:14, 20 December 2011

GTA III Vice City San Andreas


Description

Checks if the player character is controllable

Syntax

03EE:   player [player handle] controllable

Parameter

[player handle]
The handle of the player

This opcode returns true if the player is controllable. The player is controllable if the animation sequences of the player character can be controlled through input keys. Animation sequences that do not allow direct control of the player character (i.e. falling through the air, entering a vehicle, ejecting from a vehicle, death, opcode 01B4) are considered not controllable and the opcode would return false.

Example

The following example, using Sanny Builder, will allow you to see when the opcode returns true or false.

while true
    wait 10
    if
        03EE:   player $PLAYER_CHAR controllable
    then
        01E5: text_1number_highpriority 'NUMBER' 1 10 ms 1  // display 1 (true)
    else
        01E5: text_1number_highpriority 'NUMBER' 0 10 ms 1  // display 0 (false)
    end
end

Keywords

check, player, control, controllable