GetMarkerSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
==Description==
This function returns a [[float]] containing the size of the specified marker.
This function returns a float containing the size of the specified marker.


==Syntax==
==Syntax==
float [[getMarkerSize]] ( [[marker]] marker )
<syntaxhighlight lang="lua">float getMarkerSize ( marker myMarker )</syntaxhighlight>


===Required Arguments===
===Required Arguments===
*'''marker''': The [[marker]] that you wish to retrieve the size of.
*'''marker''': The [[marker]] that you wish to retrieve the size of.
===Returns===
Returns a [[float]] containing the size of the specified marker.


==Example==
==Example==
newmarker = [[createMarker]] ( 1, 1000, 1000, 1000, 1,0,0 )
<syntaxhighlight lang="lua">newMarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )
   
   
  [[serverChat]] ( "Current marker size: ", [[getMarkerSize]] ( newmarker ) )
  OutputChatBox ( ( "Current marker size: ", getMarkerSize ( newMarker ) ), player )</syntaxhighlight>

Revision as of 16:53, 18 May 2006

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

Syntax

float getMarkerSize ( marker myMarker )

Required Arguments

  • marker: The marker that you wish to retrieve the size of.

Returns

Returns a float containing the size of the specified marker.

Example

newMarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )
 
 OutputChatBox ( ( "Current marker size: ", getMarkerSize ( newMarker ) ), player )