Difference between revisions of "SET CHAR PROP INDEX"
Jump to navigation
Jump to search
(Created page with "{{Native |np=3 |p1t=Handle |p1d=Ped Handle |p2t=int |p2d=Old index ? |p3t=int |p3d=New index ? }} The results of this function are either unknown or untested.") |
Zolika1351 (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
|p1d=Ped Handle | |p1d=Ped Handle | ||
|p2t=int | |p2t=int | ||
− | |p2d= | + | |p2d=Prop type (hat or glasses) |
|p3t=int | |p3t=int | ||
− | |p3d= | + | |p3d=Prop index |
}} | }} | ||
− | + | Sets a ped's prop (hats, glasses, etc) variation, similar to component variations. | |
+ | |||
+ | Example:<br/> | ||
+ | |||
+ | u32 Prop1;<br/> | ||
+ | u32 Prop2;<br/> | ||
+ | GET_CHAR_PROP_INDEX(Ped1, 0, &Prop1);<br/> | ||
+ | CLEAR_CHAR_PROP(GetPlayerPed(), 0);<br/> | ||
+ | SET_CHAR_PROP_INDEX(GetPlayerPed(), 0, Prop2);<br/> | ||
+ | GET_CHAR_PROP_INDEX(Ped1, 1, &Prop2);<br/> | ||
+ | CLEAR_CHAR_PROP(GetPlayerPed(), 1);<br/> | ||
+ | SET_CHAR_PROP_INDEX(GetPlayerPed(), 1, Prop2);<br/> |
Latest revision as of 14:52, 29 September 2017
Number of parameters: 3 | ||
---|---|---|
Parameter # | Type | Description |
1. | Handle | Ped Handle |
2. | int | Prop type (hat or glasses) |
3. | int | Prop index |
Return value: | ||
Type | Description | |
None |
Sets a ped's prop (hats, glasses, etc) variation, similar to component variations.
Example:
u32 Prop1;
u32 Prop2;
GET_CHAR_PROP_INDEX(Ped1, 0, &Prop1);
CLEAR_CHAR_PROP(GetPlayerPed(), 0);
SET_CHAR_PROP_INDEX(GetPlayerPed(), 0, Prop2);
GET_CHAR_PROP_INDEX(Ped1, 1, &Prop2);
CLEAR_CHAR_PROP(GetPlayerPed(), 1);
SET_CHAR_PROP_INDEX(GetPlayerPed(), 1, Prop2);