Difference between revisions of "0245"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 0245=2, %1d% %2d% | description = Sets an actors walkstyle. | p1 = Existing actor handle. | p2 = Walkstyle | game = GTA 3, …')
 
(page rewrite)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0245=2, %1d%  %2d%
+
| games      = {{Icon|t}}
| description = Sets an actors walkstyle.
+
| command    = SET_ANIM_GROUP_FOR_CHAR
| p1          = Existing actor handle.
+
| description = Sets the animation group for the character
| p2          = Walkstyle
+
| syntax1    = {{Icon|3}} {{Icon|VC}} 0245: set_actor [''char handle''] walk_style_to [''int'']
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| syntax2    = {{Icon|SA}} 0245: set_actor [''char handle''] walk_style_to "[''string'']"
 +
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 +
| p2t        = [''int'']
 +
| p2d        = Animation group (see below)
 +
| p3t        = [''string'']
 +
| p3d        = [[Animgrp.dat#Walkstyles|Animation group]]
 
}}
 
}}
  
This opcode sets an actors walkstyle.
+
This opcode sets the animation group for the character, notably changing the way the character walks. The character's initial animation group is defined in the [[PEDS|PEDS section]] of the [[IDE]] file. Many values are invalid and can crash the game. Setting an animation group for the player produces no effect..
  
==Sanny Builder Example==
+
== GTA III ==
 +
{|class="wikitable"
 +
!Anim<br>group ||Enum
 +
|-
 +
|9 ||ANIM_GANG2_PED
 +
|-
 +
|15 ||ANIM_SEXY_WOMANPED
 +
|-
 +
|18 ||ANIM_PANIC_CHUNKYPED
 +
|}
  
<source lang="scm">0245: set_actor $ACTOR_SMOKE walk_style_to "FATMAN"</source>
+
== Vice City ==
 +
{|class="wikitable"
 +
!Anim<br>group ||[[SCM language III/VC definitions#ANIM|Enum]]
 +
|-
 +
|0 ||ANIM_STD_PED
 +
|-
 +
|30 ||ANIM_PLAYER_PED
 +
|-
 +
|31 ||ANIM_PLAYER_ROCKET_PED
 +
|-
 +
|32 ||ANIM_PLAYER_1ARMED_PED
 +
|-
 +
|33 ||ANIM_PLAYER_2ARMED_PED
 +
|-
 +
|34 ||ANIM_PLAYER_BBBAT_PED
 +
|-
 +
|35 ||ANIM_PLAYER_CHAINSAW_PED
 +
|-
 +
|36 ||ANIM_SHUFFLE_PED
 +
|-
 +
|37 ||ANIM_OLD_PED
 +
|-
 +
|38 ||ANIM_GANG1_PED
 +
|-
 +
|39 ||ANIM_GANG2_PED
 +
|-
 +
|40 ||ANIM_FAT_PED
 +
|-
 +
|41 ||ANIM_OLDFAT_PED
 +
|-
 +
|42 ||ANIM_JOGGER_PED
 +
|-
 +
|43 ||ANIM_STD_WOMANPED
 +
|-
 +
|44 ||ANIM_SHOPPING_WOMANPED
 +
|-
 +
|45 ||ANIM_BUSY_WOMANPED
 +
|-
 +
|46 ||ANIM_SEXY_WOMANPED
 +
|-
 +
|47 ||ANIM_FAT_WOMANPED
 +
|-
 +
|48 ||ANIM_OLD_WOMANPED
 +
|-
 +
|49 ||ANIM_JOGGER_WOMANPED
 +
|-
 +
|50 ||ANIM_PANIC_CHUNKYPED
 +
|}
  
==Keywords==
+
== Keywords ==
walkstyle, actor
+
set, character, actor, anim, animation, group, walk, style

Latest revision as of 21:58, 3 June 2016

GTA III Vice City San Andreas SET_ANIM_GROUP_FOR_CHAR


Description
Sets the animation group for the character
Syntax
GTA III Vice City 0245: set_actor [char handle] walk_style_to [int]
San Andreas 0245: set_actor [char handle] walk_style_to "[string]"
Parameter
[char handle]
The handle of the character
[int]
Animation group (see below)
[string]
Animation group

This opcode sets the animation group for the character, notably changing the way the character walks. The character's initial animation group is defined in the PEDS section of the IDE file. Many values are invalid and can crash the game. Setting an animation group for the player produces no effect..

GTA III

Anim
group
Enum
9 ANIM_GANG2_PED
15 ANIM_SEXY_WOMANPED
18 ANIM_PANIC_CHUNKYPED

Vice City

Anim
group
Enum
0 ANIM_STD_PED
30 ANIM_PLAYER_PED
31 ANIM_PLAYER_ROCKET_PED
32 ANIM_PLAYER_1ARMED_PED
33 ANIM_PLAYER_2ARMED_PED
34 ANIM_PLAYER_BBBAT_PED
35 ANIM_PLAYER_CHAINSAW_PED
36 ANIM_SHUFFLE_PED
37 ANIM_OLD_PED
38 ANIM_GANG1_PED
39 ANIM_GANG2_PED
40 ANIM_FAT_PED
41 ANIM_OLDFAT_PED
42 ANIM_JOGGER_PED
43 ANIM_STD_WOMANPED
44 ANIM_SHOPPING_WOMANPED
45 ANIM_BUSY_WOMANPED
46 ANIM_SEXY_WOMANPED
47 ANIM_FAT_WOMANPED
48 ANIM_OLD_WOMANPED
49 ANIM_JOGGER_WOMANPED
50 ANIM_PANIC_CHUNKYPED

Keywords

set, character, actor, anim, animation, group, walk, style