GetMarkerSize: Difference between revisions

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


===Required Arguments===
===Required Arguments===
*'''marker''': The [[marker]] that you wish to retrieve the size of.
*'''myMarker''': The [[marker]] that you wish to retrieve the size of.


===Returns===
===Returns===
Line 12: Line 12:


==Example==
==Example==
<syntaxhighlight lang="lua">newMarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )
<syntaxhighlight lang="lua">
OutputChatBox ( ( "Current marker size: ", getMarkerSize ( newMarker ) ), player )</syntaxhighlight>
-- 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
</syntaxhighlight>

Revision as of 17:02, 18 May 2006

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

-- 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