Difference between revisions of "File:Blip display test 2.png"
Jump to navigation
Jump to search
| Line 2: | Line 2: | ||
Pay attention to the ''blip_display'' value used for each blip (shown in the radar) and how the blips are displayed relative to [[Media:Blip_display_test_1.png]] | Pay attention to the ''blip_display'' value used for each blip (shown in the radar) and how the blips are displayed relative to [[Media:Blip_display_test_1.png]] | ||
| + | |||
| + | The blips were created in a for loop that also changed their ''blip_display'' value: | ||
| + | |||
| + | <source lang="cpp"> | ||
| + | |||
| + | //The display values were defined in an enum. | ||
| + | //They vary from 0 to 5 with BLIP_DISPLAY_0 being 0 and BLIP_DISPLAY_5 being 5 | ||
| + | |||
| + | Blip blip_array[6]; | ||
| + | eBlipDisplay display_array[] = {BLIP_DISPLAY_0, BLIP_DISPLAY_1, BLIP_DISPLAY_2, BLIP_DISPLAY_3, BLIP_DISPLAY_4, BLIP_DISPLAY_5}; | ||
| + | |||
| + | for(int i = 0; i < 6; i++) | ||
| + | { | ||
| + | f32 offset = -8.0 * float(i); | ||
| + | AddBlipForContact(952.727, -508.730 + offset, 20.0, &blip_array[i]); //For some reason "contact_blips" are gigantic | ||
| + | ChangeBlipDisplay(blip_array[i], display_array[5]); | ||
| + | } | ||
| + | </source> | ||
Revision as of 12:12, 7 January 2015
Screenshot from the game showing various blips.
Pay attention to the blip_display value used for each blip (shown in the radar) and how the blips are displayed relative to Media:Blip_display_test_1.png
The blips were created in a for loop that also changed their blip_display value:
//The display values were defined in an enum.
//They vary from 0 to 5 with BLIP_DISPLAY_0 being 0 and BLIP_DISPLAY_5 being 5
Blip blip_array[6];
eBlipDisplay display_array[] = {BLIP_DISPLAY_0, BLIP_DISPLAY_1, BLIP_DISPLAY_2, BLIP_DISPLAY_3, BLIP_DISPLAY_4, BLIP_DISPLAY_5};
for(int i = 0; i < 6; i++)
{
f32 offset = -8.0 * float(i);
AddBlipForContact(952.727, -508.730 + offset, 20.0, &blip_array[i]); //For some reason "contact_blips" are gigantic
ChangeBlipDisplay(blip_array[i], display_array[5]);
}File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 12:05, 7 January 2015 | 800 × 600 (713 KB) | Cpp (talk | contribs) | Screenshot from the game showing various blips. Pay attention to the ''blip_display'' value used for each blip (shown in the radar) and how the blips are displayed relative to Media:Blip_display_test_1.png | |
| 12:02, 7 January 2015 | 800 × 600 (713 KB) | Cpp (talk | contribs) | Screenshot from the gaming showing various blips. Pay attention to the ''blip_display'' value used for each blip (shown in the radar) and how the blips are displayed relative to Blip_display_test_1.png |
- You cannot overwrite this file.
File usage
The following page uses this file: