GetBlipColor: Difference between revisions
(Created page with "Gets the color of a blip. ==Syntax== <pre>int NAPI.Blip.GetBlipColor(Blip blip);</pre> === Required Arguments === *'''blip:''' The blip to get the color from. Parameter inpu...") |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Gets the color of a blip. | Gets the color of a blip. | ||
= | {{CSharpContainer| | ||
{{#tag:syntaxhighlight| int {{Template:CSharp_Serverside_namespace}}Blip.GetBlipColor(Blip blip);|lang=csharp}} | |||
{{Parameters}} | |||
*'''blip:''' The blip to get the color from. Parameter input should be in '''Blip''' type | *'''blip:''' The blip to get the color from. Parameter input should be in '''Blip''' type | ||
{{Example}} | {{Example}} | ||
{{#tag:syntaxhighlight|var list = {{Template:CSharp_Serverside_namespace}}Pools.GetAllBlips(); | |||
var list = | |||
foreach (Blip blip in list) | foreach (Blip blip in list) | ||
{ | { | ||
if ( | if ({{Template:CSharp_Serverside_namespace}}Blip.GetBlipColor(blip) == 0) | ||
{ | { | ||
{{Template:CSharp_Serverside_namespace}}Blip.SetBlipColor(blip, 38); | |||
} | } | ||
} | } | ||
}} | |||
}} | }} | ||
[[Category:Serverside API]] | [[Category:Serverside API]] | ||
Latest revision as of 08:01, 29 November 2019
Gets the color of a blip.
C# Syntax
int NAPI.Blip.GetBlipColor(Blip blip);
Parameters
- blip: The blip to get the color from. Parameter input should be in Blip type
Example
var list = NAPI.Pools.GetAllBlips();
foreach (Blip blip in list)
{
if (NAPI.Blip.GetBlipColor(blip) == 0)
{
NAPI.Blip.SetBlipColor(blip, 38);
}
}