GetMarkerSize: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(OOP) |
||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">float getMarkerSize ( marker myMarker )</syntaxhighlight> | <syntaxhighlight lang="lua">float getMarkerSize ( marker myMarker )</syntaxhighlight> | ||
{{OOP||[[Marker]]:getSize|size|setMarkerSize}} | |||
===Required Arguments=== | ===Required Arguments=== | ||
*'''myMarker''': The [[marker]] that you wish to retrieve the size of. | *'''myMarker''': The [[marker]] that you wish to retrieve the size of. |
Revision as of 01:53, 13 December 2014
This function returns a float containing the size of the specified marker.
Syntax
float getMarkerSize ( marker myMarker )
OOP Syntax Help! I don't understand this!
- Method: Marker:getSize(...)
- Variable: .size
- Counterpart: setMarkerSize
Required Arguments
- myMarker: The marker that you wish to retrieve the size of.
Returns
Returns a float containing the size of the specified marker.
Example
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