Difference between revisions of "0581"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
'''Parameter''' | '''Parameter''' | ||
: [''int''] | : [''int''] | ||
− | :: | + | :: Value (0 = hide, {{hint|1|or any value other than 0}} = show) |
'''Native analog''' | '''Native analog''' | ||
: [[DISPLAY_RADAR]] | : [[DISPLAY_RADAR]] | ||
− | This opcode displays the "radar" mini-map on the bottom left corner of the HUD. By default, the | + | This opcode displays the "radar" mini-map on the bottom left corner of the HUD. By default, the radar is set to show. Hiding the radar will remove the entire disc and all blips from the HUD. |
+ | |||
+ | == Example == | ||
+ | The following example, using Sanny Builder, will allow you to hide the mini-map when you hold the CAMERA key. | ||
+ | <source lang="scm"> | ||
+ | while true | ||
+ | wait 10 | ||
+ | if | ||
+ | 00E1: key_pressed 0 13 // camera key | ||
+ | then | ||
+ | 0581: enable_radar 0 // hide radar | ||
+ | else | ||
+ | 0581: enable_radar 1 // display radar | ||
+ | end | ||
+ | end | ||
+ | </source> | ||
== Keywords == | == Keywords == | ||
− | toggle, set, radar, minimap | + | toggle, set, display, show, hide, radar, minimap |
[[Category:OpCodes]] | [[Category:OpCodes]] |
Revision as of 20:29, 9 December 2011
Description
- Displays the "radar" mini-map
Syntax
- 0581: enable_radar [int]
Parameter
- [int]
- Value (0 = hide, 1 = show)
Native analog
This opcode displays the "radar" mini-map on the bottom left corner of the HUD. By default, the radar is set to show. Hiding the radar will remove the entire disc and all blips from the HUD.
Example
The following example, using Sanny Builder, will allow you to hide the mini-map when you hold the CAMERA key.
while true
wait 10
if
00E1: key_pressed 0 13 // camera key
then
0581: enable_radar 0 // hide radar
else
0581: enable_radar 1 // display radar
end
end
Keywords
toggle, set, display, show, hide, radar, minimap