GetMarkerSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 13: Line 13:


==Example==
==Example==
This example creates a marker and outputs the size to everyone. (server/client)
<section name="Both" class="both" show="true">
This example creates a marker and outputs the size to everyone.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
-- Create a maker
-- Create a maker
Line 22: Line 23:
outputChatBox ( "Current marker size: " .. getMarkerSize ( newMarker ) )
outputChatBox ( "Current marker size: " .. getMarkerSize ( newMarker ) )
end
end
</syntaxhighlight>
</syntaxhighlight> </section>


==See Also==
==See Also==
{{Marker functions}}
{{Marker functions}}

Revision as of 23:19, 14 August 2007

This function returns a float containing the size of the specified marker.

Syntax

float getMarkerSize ( marker myMarker )

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

Click to collapse [-]
Both

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