GetBlipOrdering: Difference between revisions
Jump to navigation
Jump to search
m (Needs example) |
No edit summary |
||
Line 14: | Line 14: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function getMyBlip(theBlip) | |||
local ordering = getBlipOrdering ( theBlip ) | |||
outputChatBox("The following blip has a oredering of".. ordering) | |||
end | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 20:18, 2 May 2011
This function gets the Z ordering value of a blip. The Z ordering determines if a blip appears on top of or below other blips. Blips with a higher Z ordering value appear on top of blips with a lower value. The default value for all blips is 0.
Syntax
int getBlipOrdering ( blip theBlip )
Required Arguments
- theBlip: the blip to retrieve the Z ordering value of.
Returns
Returns the Z ordering value of the blip if successful, false otherwise.
Example
function getMyBlip(theBlip) local ordering = getBlipOrdering ( theBlip ) outputChatBox("The following blip has a oredering of".. ordering) end