GetMarkerSize: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
<section name="Server" class="server"> | |||
<syntaxhighlight lang="lua">float getMarkerSize ( marker myMarker )</syntaxhighlight> | <syntaxhighlight lang="lua">float getMarkerSize ( marker myMarker )</syntaxhighlight> | ||
Line 10: | Line 11: | ||
===Returns=== | ===Returns=== | ||
Returns a [[float]] containing the size of the specified marker. | Returns a [[float]] containing the size of the specified marker. | ||
</section> | |||
<section name="Client" class="client"> | |||
<syntaxhighlight lang="lua">float getMarkerSize ( marker myMarker )</syntaxhighlight> | |||
===Required Arguments=== | |||
*'''myMarker''': The [[marker]] that you wish to retrieve the size of. | |||
===Returns=== | |||
Returns a [[float]] containing the size of the specified marker. | |||
</section> | |||
==Example== | ==Example== |
Revision as of 12:18, 3 August 2007
This function returns a float containing the size of the specified marker.
Syntax
Click to expand [+]
ServerClick to expand [+]
ClientExample
This example creates a marker and outputs the size to everyone.
-- Create a maker newMarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 ) -- If the marker was created successfully then... if ( newMarker ~= false ) then -- Tell everyone about it outputChatBox ( "Current marker size: " .. getMarkerSize ( newMarker ) ) end
See Also
- createMarker
- getMarkerColor
- getMarkerCount
- getMarkerIcon
- getMarkerSize
- getMarkerTarget
- getMarkerType
- setMarkerColor
- setMarkerIcon
- setMarkerSize
- setMarkerTarget
- setMarkerType
- isElementWithinMarker