Difference between revisions of "GET NUMBER OF CHAR TEXTURE VARIATIONS"
Jump to navigation
Jump to search
(Created page with "{{Native |np=4 |p1t=integer |p1d=Ped |p2t=integer |p2d=Component id |p3t=integer |p3d=Variaton |p4t=integer |p4d=Number of all available texture variations }} Gets all avail...") |
Zolika1351 (talk | contribs) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Native | {{Native | ||
| − | |np= | + | |np=3 |
|p1t=integer | |p1t=integer | ||
|p1d=Ped | |p1d=Ped | ||
| Line 7: | Line 7: | ||
|p3t=integer | |p3t=integer | ||
|p3d=Variaton | |p3d=Variaton | ||
| − | |||
| − | |||
}} | }} | ||
Gets all available texture variations in current component (parameter 2) and for current [[GET_CHAR_DRAWABLE_VARIATION|drawable variation]] (parameter 3). | Gets all available texture variations in current component (parameter 2) and for current [[GET_CHAR_DRAWABLE_VARIATION|drawable variation]] (parameter 3). | ||
| + | |||
| + | Example usage: | ||
| + | |||
| + | int CurrentHead = GET_CHAR_DRAWABLE_VARIATION(GetPlayerPed(), 0);<br/> | ||
| + | int MaxHeadTex = GET_NUMBER_OF_CHAR_TEXTURE_VARIATIONS(GetPlayerPed(), 0, CurrentHead); | ||
Latest revision as of 13:58, 14 October 2017
| Number of parameters: 3 | ||
|---|---|---|
| Parameter # | Type | Description |
| 1. | integer | Ped |
| 2. | integer | Component id |
| 3. | integer | Variaton |
| Return value: | ||
| Type | Description | |
| None | ||
Gets all available texture variations in current component (parameter 2) and for current drawable variation (parameter 3).
Example usage:
int CurrentHead = GET_CHAR_DRAWABLE_VARIATION(GetPlayerPed(), 0);
int MaxHeadTex = GET_NUMBER_OF_CHAR_TEXTURE_VARIATIONS(GetPlayerPed(), 0, CurrentHead);