Difference between revisions of "04E3"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 04E3=3,%1d% %2h% %3d% | description = sets the mood of the player character | p1 = player handle | p2 = flag (0 default, 1 normal, 2 an…')
 
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 04E3=3,%1d% %2h% %3d%
+
| games      = {{Icon|VC}} {{Icon|SA}}
| description = sets the mood of the player character
+
| command    = SET_PLAYER_MOOD
| p1          = player handle
+
| description = Sets the mood of the player character
| p2          = flag (0 default, 1 normal, 2 angry, 3 innocent)
+
| syntax1    = 04E3: set_player [''player handle''] mood [''int1''] duration [''int2'']
| p3          = duration (ms)
+
| p1t        = [''player handle'']
| game        = [[Vice City]], [[San Andreas]]
+
| p1d        = The [[0053|handle of the player]]
 +
| p2t        = [''int1'']
 +
| p2d        = Mood (see below)
 +
| p3t        = [''int2'']
 +
| p3d        = Duration in milliseconds
 
}}
 
}}
 +
 
This opcode sets the mood of the player for the duration of time. The character will utter phrases that pertain to that mood.
 
This opcode sets the mood of the player for the duration of time. The character will utter phrases that pertain to that mood.
  
==Keywords==
+
{| class="wikitable center-col-1"
set, actor, character, mood
+
! Mood || [[SCM language III/VC definitions#PLAYER_MOOD|Enum]]
 +
|-
 +
| 0 || PLAYER_MOOD_CALM
 +
|-
 +
| 1 || PLAYER_MOOD_PISSED_OFF
 +
|-
 +
| 2 || PLAYER_MOOD_ANGRY
 +
|-
 +
| 3 || PLAYER_MOOD_WISECRACKING
 +
|-
 +
| 4 || MAX_PLAYER_MOODS
 +
|}
 +
 
 +
== Keywords ==
 +
set, player, character, mood

Latest revision as of 06:25, 29 January 2016

Vice City San Andreas SET_PLAYER_MOOD


Description
Sets the mood of the player character
Syntax
04E3: set_player [player handle] mood [int1] duration [int2]
Parameter
[player handle]
The handle of the player
[int1]
Mood (see below)
[int2]
Duration in milliseconds

This opcode sets the mood of the player for the duration of time. The character will utter phrases that pertain to that mood.

Mood Enum
0 PLAYER_MOOD_CALM
1 PLAYER_MOOD_PISSED_OFF
2 PLAYER_MOOD_ANGRY
3 PLAYER_MOOD_WISECRACKING
4 MAX_PLAYER_MOODS

Keywords

set, player, character, mood