GetMarkerType: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
==Example== | ==Example== | ||
This function creates a default marker at a given position and outputs its type. | This function creates a default marker at a given position and outputs its type. (server/client) | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function createMarkerAndOutputType ( x, y, z ) | function createMarkerAndOutputType ( x, y, z ) |
Revision as of 12:28, 3 August 2007
This function returns a marker's type.
Syntax
Click to expand [+]
ServerClick to expand [+]
ClientExample
This function creates a default marker at a given position and outputs its type. (server/client)
function createMarkerAndOutputType ( x, y, z ) -- we create the marker local theMarker = createMarker ( x, y, z ) -- if the marker was created, if ( theMarker ) then -- then get its type, local markerType = getMarkerType ( theMarker ) -- and output it. outputChatBox ( "It's a " .. markerType .. " marker!" ) end -- return the created marker element (or false) where this function was called return theMarker end
See Also
- createMarker
- getMarkerColor
- getMarkerCount
- getMarkerIcon
- getMarkerSize
- getMarkerTarget
- getMarkerType
- setMarkerColor
- setMarkerIcon
- setMarkerSize
- setMarkerTarget
- setMarkerType
- isElementWithinMarker