SetMarkerSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
==Description==
This function sets the size of the specified marker. The function returns false if it fails.
This function sets the size of the specified marker. The function returns false if it fails.


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">bool setMarkerSize ( marker marker, float size )</syntaxhighlight>
<syntaxhighlight lang="lua">
bool setMarkerSize ( marker theMarker, float size )
</syntaxhighlight>


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


==Example==
==Example==
<syntaxhighlight lang="lua">newmarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )
This example creates a marker at the position 1000, 1000, 1000 and sets it's size to ''2.5''.
setMarkerSize ( newmarker, 2.5)</syntaxhighlight>
<syntaxhighlight lang="lua">
newmarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )
setMarkerSize ( newmarker, 2.5)
</syntaxhighlight>


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

Revision as of 00:58, 24 May 2006

This function sets the size of the specified marker. The function returns false if it fails.

Syntax

bool setMarkerSize ( marker theMarker, float size )

Required Arguments

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

Example

This example creates a marker at the position 1000, 1000, 1000 and sets it's size to 2.5.

newmarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 )
setMarkerSize ( newmarker, 2.5)

See Also